Skip to content

Commit

Permalink
chore: Update release workflow
Browse files Browse the repository at this point in the history
Take latest workflow template from goreleaser docs.
  • Loading branch information
jgraichen committed Dec 13, 2024
1 parent bc7fc90 commit e0d3421
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,27 @@ on:
release:
types: [created]

permissions:
contents: write
# packages: write
# issues: write
# id-token: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.23"
- uses: goreleaser/goreleaser-action@v6
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: ~> v2
args: release --clean
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e0d3421

Please sign in to comment.