From a7d2684507d8a833fc21cdfbd8f63dc8c08ac234 Mon Sep 17 00:00:00 2001 From: Monty Guilhaus Date: Wed, 13 May 2026 04:39:29 +0000 Subject: [PATCH] Migrate goreleaser workflow to call uci reusable Replaces the standalone GoReleaser job with a thin caller that delegates to sei-protocol/uci's new goreleaser-release reusable workflow. - .goreleaser.yaml is unchanged; no behavioural change to release outputs - Same triggers (release: published, workflow_dispatch, workflow_run on 'Releaser') so the existing version.json -> uci release-publish -> goreleaser flow keeps working - go-version-file: go.mod retained - checkout-latest-tag passed for the workflow_run path so we tag-build after the GitHub Release is created by uci's release-publish Once the uci PR adding goreleaser-release.yml is merged and tagged, update the @ref here to a version tag instead of the feature branch. --- .github/workflows/goreleaser.yml | 35 +++++--------------------------- 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 9adc2e5..1e3ffdf 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -1,4 +1,4 @@ -name: GoReleaer +name: GoReleaser on: release: @@ -13,32 +13,7 @@ permissions: jobs: goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - name: Checkout latest tag (workflow_run path) - if: github.event_name == 'workflow_run' - run: | - git fetch origin --tags --force - LATEST_TAG=$(git tag --sort=-v:refname | head -n 1) - if [[ -z "${LATEST_TAG}" ]]; then - echo "::error::no tags present in repo" - exit 1 - fi - echo "Checking out latest tag: ${LATEST_TAG}" - git checkout "${LATEST_TAG}" - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version-file: go.mod - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v6 - with: - distribution: goreleaser - version: '~> v2' - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + uses: sei-protocol/uci/.github/workflows/goreleaser-release.yml@monty/goreleaser-reusable-workflow + with: + go-version-file: go.mod + checkout-latest-tag: ${{ github.event_name == 'workflow_run' }}