Try again #5
This file contains 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: Publish .NET Console App | ||
on: | ||
push: | ||
tags: | ||
- 'v*' # This triggers the action on new version tags | ||
jobs: | ||
release: | ||
uses: ./.github/workflows/build.yml | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set version | ||
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV | ||
- name: Pack .NET tool | ||
run: dotnet pack -c Release -o out -p:Version=${{ env.VERSION }} | ||
- name: Publish to NuGet | ||
run: dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} |