Skip to content

Add workflow to build source package #5

Add workflow to build source package

Add workflow to build source package #5

Workflow file for this run

on:
push:
branches:
- master
workflow_dispatch:
name: Submit to launchpad
jobs:
Build:
runs-on: ubuntu-22.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 gpg curl devscripts equivs gdebi-core
- 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
echo $GPG_KEY > private.pgp
cat private.pgp
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 }}