Skip to content

Commit

Permalink
fix missing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
NodyHub committed Sep 20, 2024
1 parent 09c3e87 commit 7a8aac0
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: release
name: goreleaser

on:
release:
types: [ published ]

permissions:
contents: write

jobs:
release:
name: Release
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Setup go 1.21
uses: actions/[email protected]
with: { go-version: '1.21' }

- name: Checkout code
uses: actions/[email protected]

- name: Run GoReleaser
uses: goreleaser/[email protected]
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
# 'latest', 'nightly', or a semver
version: 'latest'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7a8aac0

Please sign in to comment.