Skip to content

Commit a2f2d14

Browse files
committed
Don't create tags for pre-releases
This messes with MinVer and there's the commit hash in the NuGet package anyway.
1 parent 11c43d1 commit a2f2d14

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ jobs:
4040
if: github.ref == 'refs/heads/prerelease' || startsWith(github.ref, 'refs/tags')
4141
name: Publish NuGet package
4242
steps:
43-
- name: Create Tag
44-
if: github.ref == 'refs/heads/prerelease'
45-
uses: tvdias/[email protected]
46-
with:
47-
repo-token: ${{ github.token }}
48-
tag: ${{ needs.package.outputs.version }}
4943
- uses: actions/download-artifact@v2
5044
with:
5145
name: nuget-package
@@ -57,8 +51,8 @@ jobs:
5751
env:
5852
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5953
with:
60-
tag_name: ${{ needs.package.outputs.version }}
61-
release_name: Release ${{ needs.package.outputs.version }}
54+
tag_name: ${{ github.ref }}
55+
release_name: Version ${{ needs.package.outputs.version }}
6256
body: ""
6357
draft: false
6458
prerelease: github.ref == 'refs/heads/prerelease'

0 commit comments

Comments
 (0)