Skip to content

Commit

Permalink
Only run the release pipeline for newly-pushed tags.
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Jacobs <[email protected]>
  • Loading branch information
atheriel committed Mar 31, 2022
1 parent fcbc9a9 commit 873bb21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: release
on:
pull_request:
push:
tags:
- '*'
permissions:
contents: write
id-token: write
Expand All @@ -25,7 +26,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist --snapshot
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: 1

0 comments on commit 873bb21

Please sign in to comment.