Merge remote-tracking branch 'origin/main'

This commit is contained in:
Mathias Beaulieu-Duncan 2023-11-08 22:54:36 -05:00
commit 1a54c12114

View File

@ -19,6 +19,9 @@ jobs:
id: extract_version
run: echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
- name: Debug Release Version
run: echo "RELEASE_VERSION=${{ env.RELEASE_VERSION }}"
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
@ -28,10 +31,8 @@ jobs:
run: dotnet restore
- name: Build and Pack NuGet Package
run: dotnet pack -c Release -o ./artifacts
run: dotnet pack -c Release -o ./artifacts -p:Version=${{ env.RELEASE_VERSION }}
- name: Publish to NuGet.org
run: |
dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
env:
NUGET_VERSION: ${{ steps.extract_version.outputs.release_version }}