diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4befbc3a..033c7b6c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -81,15 +81,16 @@ jobs: gpg --import ~/private.key.pem rm ~/private.key.pem -# - name: Run GoReleaser with SNAPSHOT -# if: github.event_name == 'workflow_dispatch' -# id: goreleaser -# env: -# GITHUB_TOKEN: ${{ env.FORGEJO_TOKEN }} -# GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} -# uses: goreleaser/goreleaser-action@v7 -# with: + - name: Run GoReleaser + if: github.event_name == 'workflow_dispatch' + id: goreleaser + env: + GITHUB_TOKEN: ${{ env.FORGEJO_TOKEN }} + GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} + uses: goreleaser/goreleaser-action@v7 + with: # args: release --skip publish --clean --snapshot + args: release --skip publish --clean - name: Run GoReleaser if: github.event_name != 'workflow_dispatch' @@ -108,8 +109,9 @@ jobs: - name: Determine version id: get_version run: | + set -e VERSION=$(jq -r .version < dist/metadata.json) - echo "version=${VERSIO)N}" >> "$GITHUB_OUTPUT" + echo "version=${VERSION}" >> "$GITHUB_OUTPUT" - name: Prepare provider directory structure run: |