Skip to content

chore(main): release 0.6.1 (auto-release) (#40) #9

chore(main): release 0.6.1 (auto-release) (#40)

chore(main): release 0.6.1 (auto-release) (#40) #9

Workflow file for this run

# Terraform Provider release workflow.
name: Release
# This GitHub action creates a release when a tag that matches the pattern
# "v*" (e.g. v0.1.0) is created.
on:
push:
branches:
- main
jobs:
conventional-commit-release:
uses: circlefin/circle-public-github-workflows/.github/workflows/conventional-commit-release.yaml@v1
with:
release_type: go
additional_unqualified_tags: true
extra_tags: stable
secrets:
RELEASE_TOKEN: ${{ secrets.PUBLIC_RELEASES_TOKEN }}
RELEASE_ACTOR_GPG_PRIVATE_KEY: ${{ secrets.PUBLIC_RELEASES_GPG_PRIVATE_KEY }}
RELEASE_ACTOR_GPG_PASSPHRASE: ${{ secrets.PUBLIC_RELEASES_GPG_PASSPHRASE }}
RELEASE_ACTOR_GPG_KEY_FINGERPRINT: ${{ secrets.PUBLIC_RELEASES_GPG_FINGERPRINT }}
goreleaser:
needs:
- conventional-commit-release
if: needs.conventional-commit-release.outputs.release_created == 'true'
permissions:
contents: write
runs-on: ubuntu-latest
env:
GORELEASER_CURRENT_TAG: ${{ needs.conventional-commit-release.outputs.release_tag }}
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@e80931f0826124db0a241ba9876c8e8eb3ca4d75 # v1.0.2-beta2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: 'go.mod'
cache: true
- uses: anchore/sbom-action/download-syft@f325610c9f50a54015d37c8d16cb3b0e2c8f4de0 # v0.15.10
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6.2.0
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
args: release --clean
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}