Skip to content

Commit cade37c

Browse files
committed
fix: auto tag
1 parent 1a57c7f commit cade37c

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a .NET project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33

4-
name: .NET
4+
name: .NET CI/CD
55

66
on:
77
push:
@@ -16,7 +16,6 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19-
2019

2120
- name: Setup .NET SDK
2221
uses: actions/setup-dotnet@v4
@@ -57,9 +56,22 @@ jobs:
5756
Compress-Archive -Path "$outputDir\*" -DestinationPath "$zipPath"
5857
echo "Created zip at $zipPath"
5958
60-
- name: Upload ZIP as Release asset
61-
uses: softprops/action-gh-release@v2
59+
- name: Create GitHub Release
60+
uses: actions/create-release@v1
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6263
with:
63-
files: UnifiedServerProcess-v${{ steps.gitversion.outputs.nuGetVersionV2 }}.zip
64+
tag_name: v${{ steps.gitversion.outputs.majorMinorPatch }}
65+
release_name: Release v${{ steps.gitversion.outputs.majorMinorPatch }}
66+
draft: false
67+
prerelease: false
68+
69+
- name: Upload Release Asset
70+
uses: actions/upload-release-asset@v1
6471
env:
6572
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
with:
74+
upload_url: ${{ steps.create_release.outputs.upload_url }}
75+
asset_path: ./UnifiedServerProcess-v${{ steps.gitversion.outputs.nuGetVersionV2 }}.zip
76+
asset_name: UnifiedServerProcess-v${{ steps.gitversion.outputs.nuGetVersionV2 }}.zip
77+
asset_content_type: application/zip

0 commit comments

Comments
 (0)