mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
21095b18fc
While for the other platforms we can simply copy our binaries (maybe after signing them), for Fedora and Ubuntu we have to trigger fresh builds. The most logical way that I could think of to do this was to push the same commit corresponding with the intended current release into a branch named 'current' and have that trigger Copr and Launchpad builds that post into our release repos. So 'master' keeps moving forward, keeps creating new build numbers. At some point we pick a build number that we want to be the next 'current' release. We then update the current branch to the commit that corresponds to that build number and push the current branch which triggers new builds in the correct repos on Copr and Launchpad. This commit removes the silly 'push' argument from the make-package scripts (after all, they are used to push those packages to the respective build services) and instead use the branch name as argument to those scripts - allowing us to pick which repo to push into. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: Ubuntu Launchpad Build
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- scripts/docker/**
|
|
branches:
|
|
- master
|
|
- current
|
|
|
|
jobs:
|
|
push-to-ppa:
|
|
|
|
name: Submit build to Ubuntu Launchpad
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out sources
|
|
uses: actions/checkout@v1
|
|
|
|
- name: atomically create or retrieve the build number
|
|
id: version_number
|
|
if: github.event_name == 'push'
|
|
run: |
|
|
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
|
|
|
- name: Setup build dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y devscripts dput gpg debhelper qt5-qmake cmake
|
|
|
|
- name: Setup gpg key token for launchpad
|
|
env:
|
|
GPG_PRIVATE_KEY: ${{ secrets.PPA_SECRET_KEY }}
|
|
run: |
|
|
echo "$GPG_PRIVATE_KEY" > ~/.key
|
|
gpg --import ~/.key
|
|
|
|
- name: setup git
|
|
run: |
|
|
git config --global --add safe.directory /__w/subsurface/subsurface
|
|
git config --global --add safe.directory /__w/subsurface/subsurface/libdivecomputer
|
|
|
|
- name: Checkout googlemaps
|
|
run: |
|
|
cd ..
|
|
git clone https://github.com/subsurface/googlemaps
|
|
|
|
- name: run the launchpad make-package script
|
|
run: |
|
|
cd ..
|
|
bash -x subsurface/packaging/ubuntu/make-package.sh ${{ github.ref_name }}
|
|
|