From 79087b83598136ba6b80ee3bf18ce2031dfe835e Mon Sep 17 00:00:00 2001 From: Kevin Conway Date: Fri, 20 Sep 2024 04:35:33 +0000 Subject: [PATCH] Add GH token to release workflow --- .github/workflows/tag-workflow.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tag-workflow.yaml b/.github/workflows/tag-workflow.yaml index 6773398..7499eea 100644 --- a/.github/workflows/tag-workflow.yaml +++ b/.github/workflows/tag-workflow.yaml @@ -28,8 +28,12 @@ jobs: run: mkdir -p .build && CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows go build -o .build/windows.exe main.go - name: Add Linux Artifact To Release run: gh release upload ${{github.event.release.tag_name}} .build/linux --clobber + env: + GH_TOKEN: ${{ github.token }} - name: Add Windows Artifact To Release run: gh release upload ${{github.event.release.tag_name}} .build/windows.exe --clobber + env: + GH_TOKEN: ${{ github.token }} osx: name: OSX Releases runs-on: macos-latest @@ -47,5 +51,9 @@ jobs: run: mkdir -p .build && CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o .build/osx-arm main.go - name: Add OSX AMD64 Artifact To Release run: gh release upload ${{github.event.release.tag_name}} .build/osx-amd --clobber + env: + GH_TOKEN: ${{ github.token }} - name: Add OSX ARM64 Artifact To Release run: gh release upload ${{github.event.release.tag_name}} .build/osx-arm --clobber + env: + GH_TOKEN: ${{ github.token }}