Workflow file for this run
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
on: | |
release: | |
types: | |
- published | |
name: Trigger Ubuntu Launchpad Build | |
jobs: | |
build: | |
name: Submit a build from Ubuntu container | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out proper version of sources | |
uses: actions/checkout@v4 | |
- uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
- name: Check changelog for bumped version | |
run: | | |
grep -q ${{ github.event.release.tag_name }} debian/changelog || { echo "Version not bumped!" && exit 1; } | |
- name: Install build dependencies | |
run: | | |
sudo add-apt-repository -y ppa:longsleep/golang-backports | |
sudo apt-get update | |
sudo apt-get install -y equivs devscripts dput make | |
sudo mk-build-deps --install debian/control | |
- name: Prep build requirements | |
run: | | |
make prepare-deb-build | |
- name: Send to Launchpad | |
run: | | |
dput ppa:dvdmuckle/spc debbuild/*source.changes |