Skip to content

Commit ccd756f

Browse files
committed
GitVersion 6 + git tagging
1 parent e906552 commit ccd756f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install GitVersion
3030
uses: gittools/actions/gitversion/setup@v4
3131
with:
32-
versionSpec: '5.x'
32+
versionSpec: '6.x'
3333

3434
- name: Run GitVersion
3535
id: gitversion
@@ -55,6 +55,14 @@ jobs:
5555
run: dotnet pack --no-build -c Release -o ../artifacts /p:Version=$GITVERSION_SEMVER
5656
working-directory: src
5757

58+
- name: Create and push git tag
59+
if: ${{ github.ref == 'refs/heads/main' }}
60+
run: |
61+
git config user.name "github-actions[bot]"
62+
git config user.email "github-actions[bot]@users.noreply.github.com"
63+
git tag -a $GITVERSION_SEMVER -m "Release $GITVERSION_SEMVER"
64+
git push origin $GITVERSION_SEMVER
65+
5866
- name: Push NuGet packages to Feedz ⬆️
5967
working-directory: artifacts
6068
run: dotnet nuget push Feedz.Client.$GITVERSION_SEMVER.nupkg --api-key ${{ secrets.FEEDZ_APIKEY }} -s https://f.feedz.io/feedz-io/public/nuget/index.json

0 commit comments

Comments
 (0)