File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
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
+ mkdir -p ~/.gnupg
21
+ echo "default-cache-ttl 46000" >> ~/.gnupg/gpg-agent.conf
22
+ echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
23
+ echo "allow-preset-passphrase" >> ~/.gnupg/gpg-agent.conf
24
+ systemctl --user status gpg-agent || true
25
+ systemctl --user stop gpg-agent || true
26
+ systemctl --user start gpg-agent || true
27
+
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+
31
+ - name : Install build dependencies
32
+ run : |
33
+ sudo mk-build-deps -i
34
+
35
+ - name : Build and sign source package
36
+ run : |
37
+ echo "DEBUILD_TGZ_CHECK=no" >> ~/.devscripts
38
+ curl -sSL $GPG_KEY > private.pgp
39
+ export GPG_TTY=$(tty)
40
+ echo $GPG_PASS | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --import private.pgp
41
+ rm -f private.pgp
42
+ debuild -S -i -I -p"gpg --batch --yes --passphrase $GPG_PASS --pinentry-mode loopback"
43
+ env :
44
+ GPG_KEY : ${{ secrets.GPG_KEY }}
45
+ GPG_PASS : ${{ secrets.GPG_PASS }}
You can’t perform that action at this time.
0 commit comments