diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 093f844..df64a3c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,18 +9,25 @@ env: PGO_FILE: "default.pgo" jobs: + is-tag: + runs-on: ubuntu-latest + steps: + - name: Is ref tag? + if: > + ( + github.ref_type != 'tag' && + github.event_name == 'workflow_dispatch' + ) + run: exit 1 + release: - name: goreleaser-cross runs-on: ubuntu-latest + needs: is-tag container: image: ghcr.io/goreleaser/goreleaser-cross:latest steps: - uses: actions/checkout@master - - name: Is ref tag? - if: (github.event_name == 'workflow_dispatch' && github.ref_type != 'tag') - run: exit 1 - - uses: actions/setup-go@v5 with: go-version-file: 'go.mod'