-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to build source package
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
name: Submit to launchpad | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-24.04 | ||
name: 'Sign and upload 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 | ||
echo "DEBUILD_TGZ_CHECK=no" >> ~/.devscripts | ||
curl -sSL $GPG_KEY > private.pgp | ||
export GPG_TTY=$(tty) | ||
gpg --batch --yes --import private.pgp | ||
rm -f private.pgp | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install build dependencies | ||
run: | | ||
sudo mk-build-deps -i | ||
- name: Build and sign source package | ||
run: | | ||
debuild -S -i -I -p"gpg --batch --yes --passphrase $GPG_PASS --pinentry-mode loopback" | ||
sed -i.bak 's|noble|jammy|g' debian/changelog | ||
debuild -S -i -I -p"gpg --batch --yes --passphrase $GPG_PASS --pinentry-mode loopback" | ||
env: | ||
GPG_KEY: ${{ secrets.GPG_KEY }} | ||
GPG_PASS: ${{ secrets.GPG_PASS }} | ||
|
||
- name: Upload to launchpad | ||
run: | | ||
cd .. | ||
dput ppa:opencpu/opencpu-2.2 *.changes |