Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
publish:
name: Pack and push to NuGet
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- name: Checkout
Expand All @@ -46,10 +49,16 @@ jobs:
- name: Pack
run: dotnet pack ShockwaveFlash.slnx --no-build --configuration Release --output artifacts

- name: NuGet login
id: nuget-login
uses: NuGet/login@v1
with:
user: jimmy-mll

- name: Push
shell: pwsh
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET_API_KEY: ${{ steps.nuget-login.outputs.NUGET_API_KEY }}
run: |
Get-ChildItem artifacts/*.nupkg | ForEach-Object {
dotnet nuget push $_.FullName --api-key $env:NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
Expand Down
Loading