diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 549c64c..14c8cf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,14 +10,20 @@ jobs: run: dotnet restore - name: Publish for win-x64 run: dotnet publish -r win-x64 + - name: Get version + id: package_version + uses: KageKirin/get-csproj-version@v0 + with: + file: ./WinFileReadEvents.csproj - name: Create a Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: v${{ steps.package_version.outputs.version }} + release_name: v${{ steps.package_version.outputs.version }} + body: Self Contained win-x64 executable draft: false prerelease: false - name: Upload Release Asset diff --git a/WinFileReadEvents.csproj b/WinFileReadEvents.csproj index 359e405..1ec1299 100644 --- a/WinFileReadEvents.csproj +++ b/WinFileReadEvents.csproj @@ -9,7 +9,7 @@ WinFileReadEvents enable enable - 0.1.0 + 0.1.1