Skip to content

Commit

Permalink
token
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederoxDev committed Jul 28, 2024
1 parent 81512ee commit 4ebd2e1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ jobs:
choco install gh -y
shell: cmd

- name: Authenticate with github CLI
run: gh auth login --with-token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh

- name: Setup Visual studio
uses: microsoft/setup-msbuild@v2

Expand Down Expand Up @@ -91,10 +85,14 @@ jobs:
$release_name = "Release $env:NEW_VERSION"
gh release create $tag_name --title "$release_name" --notes "Automated release" --target main --repo FrederoxDev/Amethyst --draft=false --prerelease=false
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
run: |
$asset_path = "dist/AmethystRuntime@$env:NEW_VERSION.zip"
$asset_name = "AmethystRuntime@$env:NEW_VERSION.zip"
gh release upload "v$env:NEW_VERSION" $asset_path --name "$asset_name" --repo FrederoxDev/Amethyst
shell: pwsh
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4ebd2e1

Please sign in to comment.