File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # .github/workflows/generate-copyright.yml
2+
3+ name : Generate Debian Copyright File
4+
5+ on :
6+ push :
7+ branches : [ "main" ]
8+ workflow_dispatch : # Allows you to run this workflow manually
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ # 1. Checkout code
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ # 2. Create the source archive debmake needs
20+ - name : Create Source Archive
21+ run : |
22+ mkdir -p ../arduino-app-cli-source
23+ rsync -av --progress . ../arduino-app-cli-source --exclude .git
24+ cd ..
25+ tar -czf arduino-app-cli.tar.gz arduino-app-cli-source
26+ cd arduino-app-cli
27+
28+ # 3. Install debmake
29+ - name : Install dependencies
30+ run : sudo apt-get update && sudo apt-get install -y debmake
31+
32+ # 4. Run debmake to generate the debian/ directory and its files
33+ - name : Run debmake to create packaging files
34+ run : debmake -y
35+
36+ # 5. Upload only the copyright file as an artifact
37+ - name : Upload copyright file
38+ uses : actions/upload-artifact@v4
39+ with :
40+ name : debian-copyright-file
41+ path : debian/copyright
You can’t perform that action at this time.
0 commit comments