Skip to content

Commit

Permalink
Merge pull request #1 from blackfyre/chore-update-goreleaser
Browse files Browse the repository at this point in the history
build: 📦 update release workflow with permissions and GoReleaser v6
  • Loading branch information
blackfyre authored Oct 9, 2024
2 parents 88b5e83 + 7c28541 commit 4ba951b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Release

on:
pull_request:
push:
pull_request:
push:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
goreleaser:
Expand All @@ -12,20 +17,15 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ">=1.22.5"

- name: Run tests
run: go test ./...

go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4ba951b

Please sign in to comment.