From cba0fddf6113c8b91711c8a2a41a3690291ed755 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Tue, 26 Jul 2022 14:42:18 +1000 Subject: [PATCH] Fix release publishing --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 628ebb127..00185d234 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -155,7 +155,7 @@ jobs: - name: Master release # NOTE: this isn't perfect, but should cover most scenarios # DON'T create tag names starting with "v" if they are not stable releases - if: ${{ github.event_name == 'release' && !startsWith(github.ref, 'refs/tags/v') }} + if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') }} uses: WithoutPants/github-release@v2.0.4 with: token: "${{ secrets.GITHUB_TOKEN }}" @@ -206,7 +206,7 @@ jobs: - name: Release Docker # NOTE: this isn't perfect, but should cover most scenarios # DON'T create tag names starting with "v" if they are not stable releases - if: ${{ github.repository == 'stashapp/stash' && github.event_name == 'release' && !startsWith(github.ref, 'refs/tags/v') }} + if: ${{ github.repository == 'stashapp/stash' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') }} env: DOCKER_CLI_EXPERIMENTAL: enabled DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}