Skip to content

Commit 73efa5e

Browse files
author
Your Name
committed
packaging
1 parent 27531bd commit 73efa5e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build-deb.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)