diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd19092a..1e9c4d01 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 \ No newline at end of file + shell: pwsh + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file