fix(deps): update module golang.org/x/sync to v0.7.0 (#262) #102
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 Please and GoReleaser | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Release Please | |
uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
release-type: go | |
# The PAT is needed to run required checks on the release PR. | |
# If a PR is created with the GITHUB_TOKEN, it will not trigger workflows. | |
token: ${{ secrets.MYKSO_BOT_GITHUB_TOKEN }} | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
release: | |
runs-on: ubuntu-latest | |
needs: release-please | |
if: needs.release-please.outputs.release_created == 'true' | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.MYKSO_BOT_GPG_PRIVATE_KEY }} | |
- name: Login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
env: | |
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} | |
GITHUB_TOKEN: ${{ github.token }} | |
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | |
HOMEBREW_TAP_REPO_TOKEN: ${{ secrets.MYKSO_BOT_GITHUB_TOKEN }} | |
with: | |
args: release --clean |