Skip to content

Commit

Permalink
ci: fix release condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Aug 3, 2023
1 parent 4ab2506 commit 19adc45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Expand Up @@ -53,7 +53,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean ${{startsWith(github.ref, 'refs/tags/v') && '' || '--snapshot --skip-sign'}}
args: release --clean ${{ !startsWith(github.ref, 'refs/tags/v') && '--snapshot --skip-sign' || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ startsWith(github.ref, 'refs/tags/v') && steps.import_gpg.outputs.fingerprint || '' }}
Expand All @@ -62,7 +62,7 @@ jobs:
run: dist/caddy_linux_amd64_v1/mercure version

- name: Upload snapshot
if: ${{!startsWith(github.ref, 'refs/tags/v')}}
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
uses: actions/upload-artifact@v3
with:
name: snapshot
Expand Down

0 comments on commit 19adc45

Please sign in to comment.