Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bee08c41b4 | |||
| b71a8a46d1 |
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
- name: Extract Release Version
|
||||
id: extract_version
|
||||
run: echo ::set-output name=release_version::${{ github.event.release.tag_name }}
|
||||
run: echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
@@ -30,7 +30,8 @@ jobs:
|
||||
- name: Build and Pack NuGet Package
|
||||
run: dotnet pack -c Release -o ./artifacts
|
||||
|
||||
- name: Publish to NuGet
|
||||
run: dotnet nuget push ./artifacts/*.nupkg --source https://nuget.pkg.github.com/singatias/index.json --api-key ${{ secrets.NUGET_API_KEY }}
|
||||
- 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 }}
|
||||
|
||||
Reference in New Issue
Block a user