Merge pull request #37 from basecamp/dont-show-progress-when-no-tty #37
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 | |
| permissions: {} | |
| on: | |
| push: | |
| tags: [ "v*" ] | |
| jobs: | |
| ci: | |
| name: CI | |
| uses: ./.github/workflows/ci.yml | |
| permissions: | |
| contents: read | |
| release: | |
| needs: [ci] | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 # zizmor: ignore[cache-poisoning] -- cache is branch-isolated; fork PRs cannot write to this cache | |
| with: | |
| go-version-file: go.mod | |
| - name: Build release artifacts | |
| run: make dist | |
| - name: Create release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: > | |
| gh release create "${GITHUB_REF_NAME}" | |
| dist/* | |
| --title "Release ${GITHUB_REF_NAME}" |