Release #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| publish: | |
| name: Build & Publish Packages | |
| runs-on: windows-latest | |
| environment: | |
| name: production | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0 | |
| - name: Setup NuGet CLI | |
| uses: NuGet/setup-nuget@v2 | |
| - name: Generate packages | |
| run: dotnet pack --configuration Release -p:ContinuousIntegrationBuild=true --output ./artifacts | |
| - name: List gathered packages | |
| run: dir artifacts | |
| - name: Publish packages to NuGet | |
| working-directory: artifacts | |
| env: | |
| NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
| run: dotnet nuget push *.nupkg --api-key "$env:NUGET_API_KEY" --source https://api.nuget.org/v3/index.json --skip-duplicate | |