diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9c4ea53..8c359c0 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -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 @@ -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: