Skip to content

Commit

Permalink
cicd: try github token a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
zostay committed Jan 17, 2024
1 parent f0f8a0d commit b9088c6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand Down Expand Up @@ -52,11 +50,21 @@ jobs:
run: go build -o today-$RELEASE_VERSION-$GOOS-GOARCH ./
- name: Create Release
run: gh release create "v$RELEASE_VERSION" --draft --notes-file=release-notes.md
env:
GH_TOKEN: ${{ github.token }}
- name: Upload Linux 64-bit Binary
run: gh release upload "v$RELEASE_VERSION" today-$RELEASE_VERSION-linux-amd64
env:
GH_TOKEN: ${{ github.token }}
- name: Upload Apple Silicon Binary
run: gh release upload "v$RELEASE_VERSION" today-$RELEASE_VERSION-darwin-arm64
env:
GH_TOKEN: ${{ github.token }}
- name: Upload Apple Intel Binary
run: gh release upload "v$RELEASE_VERSION" today-$RELEASE_VERSION-darwin-amd64
env:
GH_TOKEN: ${{ github.token }}
- name: Finalize Release
run: gh release edit "v$RELEASE_VERSION" --draft=false
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit b9088c6

Please sign in to comment.