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