Skip to content

Commit

Permalink
use PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
useEffects committed Jul 27, 2024
1 parent aa264d6 commit 1332a89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }} # Use the PAT instead of the default GITHUB_TOKEN
with:
tag_name: ${{ env.version }}
release_name: Release ${{ env.version }}
Expand All @@ -104,7 +104,7 @@ jobs:
- name: Upload Linux binary to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }} # Use the PAT instead of the default GITHUB_TOKEN
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/golox-linux-amd64
Expand All @@ -120,7 +120,7 @@ jobs:
- name: Upload Windows binary to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }} # Use the PAT instead of the default GITHUB_TOKEN
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/golox-windows-amd64
Expand All @@ -136,9 +136,10 @@ jobs:
- name: Upload macOS binary to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }} # Use the PAT instead of the default GITHUB_TOKEN
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/golox-darwin-amd64
asset_name: golox-darwin-amd64
asset_content_type: application/octet-stream

0 comments on commit 1332a89

Please sign in to comment.