Skip to content

Commit

Permalink
Add workflow to build source package
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Sep 26, 2024
1 parent 0ed4730 commit 704f564
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
branches:
- master
workflow_dispatch:

name: Submit to launchpad

jobs:
Build:
runs-on: ubuntu-24.04
name: 'Submit to Launchpad'

steps:
- name: Prepare system
run: |
sudo apt-get update
sudo add-apt-repository -y "ppa:marutter/rrutter4.0"
sudo apt-get install -y git gnupg curl devscripts equivs gdebi-core
mkdir -p ~/.gnupg
echo "default-cache-ttl 46000" >> ~/.gnupg/gpg-agent.conf
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
echo "allow-preset-passphrase" >> ~/.gnupg/gpg-agent.conf
systemctl --user status gpg-agent || true
systemctl --user stop gpg-agent || true
systemctl --user start gpg-agent || true
- name: Checkout
uses: actions/checkout@v4

- name: Install build dependencies
run: |
sudo mk-build-deps -i
- name: Build and sign source package
run: |
echo "DEBUILD_TGZ_CHECK=no" >> ~/.devscripts
curl -sSL $GPG_KEY > private.pgp
export GPG_TTY=$(tty)
echo $GPG_PASS | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --import private.pgp
rm -f private.pgp
debuild -S -i -I
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASS: ${{ secrets.GPG_PASS }}

0 comments on commit 704f564

Please sign in to comment.