Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
token from secret
Browse files Browse the repository at this point in the history
  • Loading branch information
techierishi committed Jan 31, 2024
1 parent d9b00fb commit e6c4f55
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ jobs:
Compress-Archive -Path "$AppName-arm64.exe" -DestinationPath "$AppName-$Version-win-arm64.zip"
ls
cd ..
echo ${GITHUB_TOKEN} | gh auth login --with-token
echo ${{ secrets.PAL_PAT }} | gh auth login --with-token
gh release create $Version "$OutputDir\$AppName-$Version-win-amd64.zip" -t "Release $Version amd64"
gh release create $Version "$OutputDir\$AppName-$Version-win-arm64.zip" -t "Release $Version arm64"
env:
GITHUB_TOKEN: ${{ secrets.PAL_PAT }}
- name: Generate binary on Ubuntu
if: matrix.os == 'ubuntu-20.04'
Expand All @@ -88,11 +86,9 @@ jobs:
zip $APP_NAME-$VERSION-linux-arm64.zip $APP_NAME-linux-amd64
ls -lart
cd ..
echo ${GITHUB_TOKEN} | gh auth login --with-token
echo ${{ secrets.PAL_PAT }} | gh auth login --with-token
gh release create $VERSION $OUTPUT_DIR/$APP_NAME-$VERSION-linux-amd64.zip -t "Release $VERSION amd64"
gh release create $VERSION $OUTPUT_DIR/$APP_NAME-$VERSION-linux-arm64.zip -t "Release $VERSION arm64"
env:
GITHUB_TOKEN: ${{ secrets.PAL_PAT }}
- name: Generate binary on Mac
if: matrix.os == 'macos-latest'
Expand All @@ -111,8 +107,6 @@ jobs:
zip $APP_NAME-$VERSION-darwin-arm64.zip $APP_NAME-darwin-amd64
ls -lart
cd ..
echo ${GITHUB_TOKEN} | gh auth login --with-token
echo ${{ secrets.PAL_PAT }} | gh auth login --with-token
gh release create $VERSION $OUTPUT_DIR/$APP_NAME-$VERSION-darwin-amd64.zip -t "Release $VERSION amd64"
gh release create $VERSION $OUTPUT_DIR/$APP_NAME-$VERSION-darwin-arm64.zip -t "Release $VERSION arm64"
env:
GITHUB_TOKEN: ${{ secrets.PAL_PAT }}

0 comments on commit e6c4f55

Please sign in to comment.