diff --git a/.gitea/workflows/publish-release.yml b/.gitea/workflows/publish-release.yml index 6c9af46..ba39afb 100644 --- a/.gitea/workflows/publish-release.yml +++ b/.gitea/workflows/publish-release.yml @@ -16,13 +16,16 @@ jobs: - name: Show .NET version run: dotnet --version - - name: Extract version from tag + - name: Extract tag name and version id: version run: | FULL_REF="${{ gitea.ref }}" - TAG="${FULL_REF##refs/tags/OFDLV}" - echo "Version: $TAG" - echo "version=$TAG" >> "$GITEA_OUTPUT" + TAG="${FULL_REF##refs/tags/}" + VERSION="${TAG#OFDLV}" + echo "Tag: $TAG" + echo "Version: $VERSION" + echo "tag=$TAG" >> "$GITEA_OUTPUT" + echo "version=$VERSION" >> "$GITEA_OUTPUT" - name: Build for Windows and Linux run: | @@ -60,7 +63,7 @@ jobs: - name: Create release and upload artifact uses: ./.gitea-actions/gitea-release-action with: - tag: ${{ gitea.ref }} + tag: ${{ steps.version.outputs.tag }} title: ${{ steps.version.outputs.version }} draft: true files: ./OFDLV${{ steps.version.outputs.version }}.zip