only create releases on push

Pull requests can be triggered by anyone - we should not publish code
that comes in through pull requests to either GitHub releases or
Launchpad, Copr, etc.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2023-12-07 10:10:23 -08:00
parent f0ef8b51fc
commit 6bbade9845
4 changed files with 4 additions and 6 deletions

View file

@ -52,7 +52,9 @@ jobs:
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
bash -x ./subsurface/packaging/android/qmake-build.sh
# only publish a 'release' on push events (those include merging a PR)
- name: upload binaries
if: github.event_name == 'push'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.tag }}

View file

@ -3,9 +3,6 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
setup-build:

View file

@ -3,9 +3,6 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
push-to-ppa:

View file

@ -59,7 +59,9 @@ jobs:
bash -x subsurface/.github/workflows/scripts/windows-in-container-build.sh 2>&1 | tee build.log
grep "Built target installer" build.log
# only publish a 'release' on push events (those include merging a PR)
- name: upload binaries
if: github.event_name == 'push'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.tag }}