Skip to content

Commit c2ae50b

Browse files
committed
Fix version error in the ci, Bump version
1 parent b54ba0f commit c2ae50b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ jobs:
1010
run: dotnet restore
1111
- name: Publish for win-x64
1212
run: dotnet publish -r win-x64
13+
- name: Get version
14+
id: package_version
15+
uses: KageKirin/get-csproj-version@v0
16+
with:
17+
file: ./WinFileReadEvents.csproj
1318
- name: Create a Release
1419
id: create_release
1520
uses: actions/create-release@v1
1621
env:
1722
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1823
with:
19-
tag_name: ${{ github.ref }}
20-
release_name: Release ${{ github.ref }}
24+
tag_name: v${{ steps.package_version.outputs.version }}
25+
release_name: v${{ steps.package_version.outputs.version }}
26+
body: Self Contained win-x64 executable
2127
draft: false
2228
prerelease: false
2329
- name: Upload Release Asset

WinFileReadEvents.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<RootNamespace>WinFileReadEvents</RootNamespace>
1010
<ImplicitUsings>enable</ImplicitUsings>
1111
<Nullable>enable</Nullable>
12-
<Version>0.1.0</Version>
12+
<Version>0.1.1</Version>
1313
</PropertyGroup>
1414

1515
<ItemGroup>

0 commit comments

Comments
 (0)