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
12 changes: 11 additions & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,26 @@ jobs:
name: "Production"
url: "https://www.nuget.org/packages/IntelliTect.Analyzers"
name: Push NuGets
permissions:
Comment thread
BenjaminMichaelis marked this conversation as resolved.
id-token: write # Required for NuGet trusted publishing (OIDC)
contents: read
actions: read # Required for actions/download-artifact

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v8
with:
name: NuGet

- name: NuGet login (OIDC)
id: login
uses: NuGet/login@v1
with:
user: ${{ secrets.NUGET_USER }} # nuget.org profile name (NOT email)

- name: Push NuGet
run: |
$tagVersion = "${{ github.ref }}".substring(11)
echo "TAG_VERSION=$tagVersion" >> $env:GITHUB_OUTPUT
dotnet nuget push IntelliTect.Analyzers.$tagVersion.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
dotnet nuget push IntelliTect.Analyzers.$tagVersion.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --skip-duplicate
id: tag-version
Comment on lines 72 to 75
Loading