Skip to content

Commit

Permalink
fix: move goreleaser action workflow job to release workflow (#64)
Browse files Browse the repository at this point in the history
Due to security limitations when a workflow is run with GITHUB_TOKEN (our release job) another workflow that also uses GITHUB_TOKEN will not fire-off when in another workflow.  I've moved goreleaser to the release workflow.

Signed-off-by: jmeridth <jmeridth@gmail.com>
  • Loading branch information
jmeridth authored Jan 9, 2025
1 parent e7694c7 commit b521947
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/goreleaser.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,25 @@ jobs:
release-config-name: release-drafter.yml
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
goreleaser:
needs: release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b521947

Please sign in to comment.