Skip to content

Commit

Permalink
Merge pull request #1344 from SteamRE/release-action
Browse files Browse the repository at this point in the history
Update release action
  • Loading branch information
xPaw authored Apr 26, 2024
2 parents 510fb85 + 2ca895b commit 9d3e442
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/steamkit2-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,13 @@ jobs:
path: 'SteamKit2/SteamKit2/bin/Release/SteamKit2.${{ github.event.release.tag_name }}.nupkg'

- name: Upload NuGet Package to GitHub Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: 'SteamKit2/SteamKit2/bin/Release/SteamKit2.${{ github.event.release.tag_name }}.nupkg'
asset_name: SteamKit-${{ github.event.release.tag_name }}.nupkg
asset_content_type: application/zip
run: gh release upload "${{ github.event.release.tag_name }}" "SteamKit2/SteamKit2/bin/Release/SteamKit2.${{ github.event.release.tag_name }}.nupkg"

- name: Publish NuGet Package to NuGet Gallery
run: |
nuget setapikey ${{ secrets.NUGET_API_KEY }}
nuget push SteamKit2/SteamKit2/bin/Release/SteamKit2.${{ github.event.release.tag_name }}.nupkg -Source https://api.nuget.org/v3/index.json
dotnet nuget push SteamKit2/SteamKit2/bin/Release/SteamKit2.${{ github.event.release.tag_name }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
- name: Publish NuGet Package to GitHub Packages
run: |
Expand Down

0 comments on commit 9d3e442

Please sign in to comment.