Skip to content

Merge pull request #73 from matthewhartstonge/dependabot/github_actio… #55

Merge pull request #73 from matthewhartstonge/dependabot/github_actio…

Merge pull request #73 from matthewhartstonge/dependabot/github_actio… #55

Workflow file for this run

name: release-please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@v4
id: release-please
with:
token: ${{secrets.GITHUB_TOKEN}}
goreleaser:
runs-on: ubuntu-latest
needs: release-please
if: ${{ needs.release-please.outputs.release_created == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12}}
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD}}
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID}}
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID}}
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY}}