From fddbbe83aa019beb27f8173ff6abac0ce05dd2c2 Mon Sep 17 00:00:00 2001 From: florianvazelle Date: Sun, 25 Feb 2024 11:56:15 +0100 Subject: [PATCH] ci: fix publish for extra build --- .github/workflows/appimage-build.yml | 2 +- .github/workflows/snapcraft-build.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/appimage-build.yml b/.github/workflows/appimage-build.yml index 1d032df..fedf93d 100644 --- a/.github/workflows/appimage-build.yml +++ b/.github/workflows/appimage-build.yml @@ -49,6 +49,6 @@ jobs: # Publish, on each release - name: Publish AppImage - if: ${{ env.GITHUB_EVENT_NAME == 'release' || (env.GITHUB_EVENT_NAME == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/')) }} + if: startsWith(github.ref, 'refs/tags/') run: | gh release upload ${{ env.game_version }} ./${{ env.game_name }}-${{ env.game_version }}.AppImage diff --git a/.github/workflows/snapcraft-build.yaml b/.github/workflows/snapcraft-build.yaml index 6944a0d..f384b03 100644 --- a/.github/workflows/snapcraft-build.yaml +++ b/.github/workflows/snapcraft-build.yaml @@ -31,7 +31,7 @@ jobs: # Push, on each release, to the stable channel - uses: snapcore/action-publish@v1 - if: ${{ env.GITHUB_EVENT_NAME == 'release' || (env.GITHUB_EVENT_NAME == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/')) }} + if: startsWith(github.ref, 'refs/tags/') env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }} with: