diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 414110c..9cd8b88 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -37,19 +37,12 @@ jobs: VERSION_REGEX: '(.*)<\/AssemblyVersion>' NUGET_KEY: ${{secrets.NUGET_KEY}} if: github.event_name != 'pull_request' - - - name: Retrieve version - id: proj_version - uses: KageKirin/get-csproj-version@v0 - with: - file: src/sika/sika.csproj - xpath: '//PropertyGroup/AssemblyVersion' - name: Create release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VERSION: ${{ steps.proj_version.version }} run: | - gh release create "v$VERSION" \ + version="$(grep '' src/sika/sika.csproj | grep -oE '([0-9]+\.){2}[0-9]+')" + gh release create "v$version" \ --repo="$GITHUB_REPOSITORY" \ --generate-notes \ No newline at end of file