File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 tags :
88 - v** # Only when a v... tag is pushed
99
10- # Sets permissions of the GITHUB_TOKEN to allow reading packages and push releases
10+ # Sets permissions of the GITHUB_TOKEN to allow writing packages and push releases
1111permissions :
12- packages : read
12+ packages : write
1313
1414env :
1515 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
1616 DOTNET_NOLOGO : true
17+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1718 NUGET_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1819 NuGetDirectory : ${{ github.workspace}}/nuget
1920
3031 runs-on : ubuntu-latest
3132 needs : [ build ]
3233 steps :
34+ - name : Checkout
35+ uses : actions/checkout@v4
36+
3337 - name : Download NuGet Packages Artifact
3438 uses : actions/download-artifact@v4
3539 with :
3943 - name : Build Changelog
4044 id : build_changelog
4145 uses : mikepenz/release-changelog-builder-action@v4
42- # env:
43- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4446
4547 - name : Create Release
4648 uses : mikepenz/action-gh-release@v1 # softprops/action-gh-release
7375 - name : Publish NuGet Packages
7476 run : |
7577 foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
76- dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://nuget.pkg.github.com/MonkeyModdingTroop/index.json --skip-duplicate
78+ dotnet nuget push $file --api-key "${{ secrets.GITHUB_TOKEN }}" --source https://nuget.pkg.github.com/MonkeyModdingTroop/index.json --skip-duplicate
7779 }
You can’t perform that action at this time.
0 commit comments