chore(deps): update actions/setup-go digest to 3041bf5 (#164) #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release Flow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
uses: ./.github/workflows/job-lint.yml | |
test: | |
uses: ./.github/workflows/job-test.yml | |
release: | |
needs: | |
- test | |
- lint | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
persist-credentials: false | |
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6 | |
with: | |
gpg_private_key: ${{ secrets.ZEBRADIL_BOT_GPG_PRIVATE_KEY }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Semantic Release | |
id: semantic | |
uses: cycjimmy/semantic-release-action@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ZEBRADIL_BOT_GITHUB_TOKEN }} | |
GIT_AUTHOR_NAME: Zebradli Bot | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: Zebradli Bot | |
GIT_COMMITTER_EMAIL: [email protected] | |
with: | |
extra_plugins: | | |
@semantic-release/exec | |
@semantic-release/git | |
- name: Print committed changes | |
run: git show | |
- name: Install GoReleaser | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6 | |
with: | |
install-only: true | |
- name: Setup QEMU | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3 | |
- name: Setup Docker Buildx | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3 | |
- name: Login to GHCR | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish release | |
if: steps.semantic.outputs.new_release_published == 'true' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} | |
run: | | |
goreleaser release --clean \ | |
--release-notes <(echo "${{ steps.semantic.outputs.new_release_notes }}") |