diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml new file mode 100644 index 0000000..3ef7cc9 --- /dev/null +++ b/.github/workflows/release-candidate.yml @@ -0,0 +1,25 @@ +name: Release +on: + push: + tags: + - "^v[0-9]+.[0-9]+.[0-9]+-rc.*" +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout Source + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + check-latest: true + - name: Release Binaries + uses: goreleaser/goreleaser-action@v5 + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 334d781..96d8058 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,7 @@ on: jobs: release: runs-on: ubuntu-latest + environment: release steps: - name: Checkout Source uses: actions/checkout@v4