Skip to content

Commit 3da39bb

Browse files
committed
Fixing github release tags
1 parent 4e280c8 commit 3da39bb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
run: dotnet restore
4848
- name: Build
4949
run: dotnet build --configuration Release --no-restore
50+
- name: AddTag
51+
run: |
52+
git tag ${{ env.CURRENT_VERSION }}
53+
git push origin --tags
5054
- name: Publish
5155
run: dotnet publish --configuration Release --no-restore
5256
- name: NugetPush
@@ -60,7 +64,7 @@ jobs:
6064
- uses: "marvinpinto/action-automatic-releases@latest"
6165
with:
6266
repo_token: "${{ secrets.GITHUB_TOKEN }}"
63-
automatic_release_tag: "latest-prerelease"
67+
automatic_release_tag: ${{ env.CURRENT_VERSION }}
6468
prerelease: true
6569
files: |
6670
LICENSE
@@ -80,6 +84,10 @@ jobs:
8084
run: dotnet restore
8185
- name: Build
8286
run: dotnet build --configuration Release --no-restore
87+
- name: AddTag
88+
run: |
89+
git tag ${{ env.CURRENT_VERSION }}
90+
git push origin --tags
8391
- name: Publish
8492
run: dotnet publish --configuration Release --no-restore
8593
- name: NugetPush
@@ -94,7 +102,7 @@ jobs:
94102
- uses: "marvinpinto/action-automatic-releases@latest"
95103
with:
96104
repo_token: "${{ secrets.GITHUB_TOKEN }}"
97-
automatic_release_tag: "latest"
105+
automatic_release_tag: ${{ env.CURRENT_VERSION }}
98106
files: |
99107
LICENSE
100108
GithubActionsHelloWorld.zip

0 commit comments

Comments
 (0)