Skip to content

Commit

Permalink
ensure package builds with new version before tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jan 12, 2024
1 parent dcaa3aa commit 21e709d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,6 @@ jobs:
run: echo "new_version=$(./bump_version)" >> $GITHUB_OUTPUT
working-directory: getargv.cs

- name: create && push tag
run: |
git commit -am 'release ${{ steps.bump_version.outputs.new_version }}'
git tag 'v${{ steps.bump_version.outputs.new_version }}'
git push origin tag 'v${{ steps.bump_version.outputs.new_version }}'
git push origin HEAD:main
working-directory: getargv.cs

- name: Build
run: dotnet build --framework net${{ matrix.dotnet }}.0
working-directory: getargv.cs
Expand All @@ -109,6 +101,14 @@ jobs:
run: dotnet pack --configuration Release Getargv
working-directory: getargv.cs

- name: create && push tag
run: |
git commit -am 'release ${{ steps.bump_version.outputs.new_version }}'
git tag 'v${{ steps.bump_version.outputs.new_version }}'
git push origin tag 'v${{ steps.bump_version.outputs.new_version }}'
git push origin HEAD:main
working-directory: getargv.cs

- name: Publish the package to GPR
run: dotnet nuget push Getargv/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://nuget.pkg.github.com/getargv/index.json
env:
Expand Down

0 comments on commit 21e709d

Please sign in to comment.