1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-26 00:05:01 +01:00

CI: Fix PPA upload

This commit is contained in:
Jonas Kvinge 2023-09-25 20:16:26 +02:00
parent db0cc66ba0
commit 39d4818def

View File

@ -744,12 +744,13 @@ jobs:
gpg_private_key: ${{secrets.UBUNTU_PPA_GPG_PRIVATE_KEY}}
- name: dpkg-buildpackage
run: dpkg-buildpackage -S -d -k573D197B5EA20EDF
- name: Upload Unstable PPA
run: dput ppa:jonaski/strawberry-unstable ../*_source.changes
- name: Set is release
run: echo "is_release=$(grep '^\s*set\s*(\s*INCLUDE_GIT_REVISION\s\+OFF\s*)\s*$' cmake/Version.cmake >/dev/null 2>&1 && echo 1 || echo 0)" >> $GITHUB_ENV
- name: Get release version
run: echo "release_version=$(git describe --tags --exact-match ${GITHUB_SHA} 2>/dev/null | head -1)" >> $GITHUB_ENV
- name: Upload Unstable PPA
if: env.is_release != '1' && env.release_version == ''
run: dput ppa:jonaski/strawberry-unstable ../*_source.changes
- name: Upload Stable PPA
if: env.is_release == '1' && env.release_version != ''
run: dput ppa:jonaski/strawberry ../*_source.changes