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
13 changes: 10 additions & 3 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET
Expand All @@ -27,10 +29,15 @@ jobs:
run: dotnet build QuadrupleLib --no-restore --configuration Release
- name: Create NuGet packages
run: dotnet pack --no-build --output build/
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: ${{ secrets.NUGET_USERNAME }}
- name: Publish to NuGet
run: dotnet nuget push --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json build/**/*.nupkg --skip-duplicate
- name: Create new release
uses: ncipollo/release-action@v1
with:
artifacts: build/**/*.nupkg
generateReleaseNotes: true
- name: Publish to NuGet
run: dotnet nuget push --api-key ${{ secrets.API_KEY }} --source nuget.org build/**/*.nupkg --skip-duplicate
Loading