Skip to content

Commit 0ab8b70

Browse files
committed
Add workflow to build source package
1 parent 0ed4730 commit 0ab8b70

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/submit.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
workflow_dispatch:
6+
7+
name: Submit to launchpad
8+
9+
jobs:
10+
Build:
11+
runs-on: ubuntu-24.04
12+
name: 'Submit to Launchpad'
13+
14+
steps:
15+
- name: Prepare system
16+
run: |
17+
sudo apt-get update
18+
sudo add-apt-repository -y "ppa:marutter/rrutter4.0"
19+
sudo apt-get install -y git gnupg curl devscripts equivs gdebi-core
20+
systemctl --user status gpg-agent
21+
systemctl --user stop gpg-agent || true
22+
systemctl --user start gpg-agent || true
23+
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Install build dependencies
28+
run: |
29+
sudo mk-build-deps -i
30+
31+
- name: Build and sign source package
32+
run: |
33+
echo "DEBUILD_TGZ_CHECK=no" >> ~/.devscripts
34+
curl -sSL $GPG_KEY > private.pgp
35+
echo $GPG_PASS | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --import private.pgp
36+
rm -f private.pgp
37+
debuild -S -i -I
38+
env:
39+
GPG_KEY: ${{ secrets.GPG_KEY }}
40+
GPG_PASS: ${{ secrets.GPG_PASS }}

0 commit comments

Comments
 (0)