Skip to content

fix(deps): update golang.org/x/exp digest to db7319d (#217) #47

fix(deps): update golang.org/x/exp digest to db7319d (#217)

fix(deps): update golang.org/x/exp digest to db7319d (#217) #47

Workflow file for this run

name: flow-stage
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@v4
with:
persist-credentials: false
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.MYKSO_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.MYKSO_BOT_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: Mykso Bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: Mykso Bot
GIT_COMMITTER_EMAIL: [email protected]
with:
extra_plugins: |
@semantic-release/git
- name: Login to GHCR
if: steps.semantic.outputs.new_release_published == 'true'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v5
if: steps.semantic.outputs.new_release_published == 'true'
with:
go-version: "1.21"
- name: Install GoReleaser
if: steps.semantic.outputs.new_release_published == 'true'
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
- name: Publish release
if: steps.semantic.outputs.new_release_published == 'true'
env:
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_REPO_TOKEN: ${{ secrets.MYKSO_BOT_GITHUB_TOKEN }}
RELEASE_NOTES: ${{ steps.semantic.outputs.new_release_notes }}
run: |
goreleaser release --clean \
--release-notes <(echo "$RELEASE_NOTES")