summaryrefslogtreecommitdiff
path: root/.github/workflows/goreleaser.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/goreleaser.yml')
-rw-r--r--.github/workflows/goreleaser.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml
index 9efe9a3..a3730c1 100644
--- a/.github/workflows/goreleaser.yml
+++ b/.github/workflows/goreleaser.yml
@@ -1,8 +1,8 @@
---
name: goreleaser
on:
- pull_request:
push:
+ tags: ['*'] # Run against any tag
permissions:
contents: write
jobs:
@@ -15,13 +15,13 @@ jobs:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
+ with:
+ go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
- version: latest
+ version: ~> v1
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
- # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}