chore(deps): update actions/upload-pages-artifact action to v4 (#214) #62
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: release | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: Tag to release | |
| required: true | |
| jobs: | |
| goreleaser: | |
| name: goreleaser | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| packages: write | |
| attestations: write | |
| env: | |
| MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }} | |
| MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }} | |
| MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }} | |
| MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }} | |
| MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }} | |
| steps: | |
| - name: Generate Token | |
| uses: actions/create-github-app-token@v2 | |
| id: app-token | |
| with: | |
| app-id: "${{ secrets.BOT_APP_ID }}" | |
| private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
| owner: "${{ github.repository_owner }}" | |
| repositories: | | |
| kat | |
| homebrew-tap | |
| nur-packages | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| token: "${{ steps.app-token.outputs.token }}" | |
| ref: ${{ github.event.inputs.tag != '' && format('refs/tags/{0}', github.event.inputs.tag) || github.ref }} | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Set up devbox | |
| uses: jetify-com/devbox-install-action@v0.14.0 | |
| with: | |
| enable-cache: true | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: "${{ github.actor }}" | |
| password: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Release in devbox | |
| run: devbox run -- task go-release | |
| env: | |
| GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}" | |
| - name: Attest Build Provenance (checksums.txt) | |
| uses: actions/attest-build-provenance@v3 | |
| with: | |
| subject-checksums: ./dist/checksums.txt | |
| - name: Attest Build Provenance (digests.txt) | |
| uses: actions/attest-build-provenance@v3 | |
| with: | |
| subject-checksums: ./dist/digests.txt |