From 3dbb04c917f4525730f24d29888c8f431199c7d2 Mon Sep 17 00:00:00 2001 From: Marcel_Henselin Date: Tue, 17 Mar 2026 16:29:06 +0000 Subject: [PATCH] chore: update publish pipeline (#91) [skip ci] ## Description relates to #1234 ## Checklist - [ ] Issue was linked above - [ ] Code format was applied: `make fmt` - [ ] Examples were added / adjusted (see `examples/` directory) - [x] Docs are up-to-date: `make generate-docs` (will be checked by CI) - [ ] Unit tests got implemented or updated - [ ] Acceptance tests got implemented or updated (see e.g. [here](https://github.com/stackitcloud/terraform-provider-stackit/blob/f5f99d170996b208672ae684b6da53420e369563/stackit/internal/services/dns/dns_acc_test.go)) - [x] Unit tests are passing: `make test` (will be checked by CI) - [x] No linter issues: `make lint` (will be checked by CI) Co-authored-by: Marcel S. Henselin Reviewed-on: https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/pulls/91 --- .github/workflows/publish.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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: |