ci: Be explicit about homebrew-tap base #70
Workflow file for this run
This file contains hidden or 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: goreleaser | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| workflow_dispatch: # Allow triggering manually. | |
| jobs: | |
| goreleaser: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Generate App Token for GoReleaser | |
| id: releaser-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.RELEASER_APP_ID }} | |
| private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} | |
| repositories: | | |
| homebrew-tap | |
| restish | |
| - name: Decode SSH Private Key | |
| run: | | |
| echo "${{ secrets.HOMEBREW_REPO_SSH_KEY }}" | base64 -d > /tmp/homebrew_repo_id_ed25519 | |
| shell: bash | |
| - name: Build using goreleaser-cross | |
| run: | | |
| docker run --rm \ | |
| -e CGO_ENABLED=1 \ | |
| -e GITHUB_TOKEN=${{ steps.releaser-token.outputs.token }} \ | |
| -v /tmp/homebrew_repo_id_ed25519:/tmp/homebrew_repo_id_ed25519 \ | |
| -v $PWD:/workspace \ | |
| -w /workspace \ | |
| ghcr.io/goreleaser/goreleaser-cross:v1.25-v2.12.7 \ | |
| release --clean --verbose |