CLI Release #64
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: CLI Release | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag_name: | |
| description: 'Tag name for the release' | |
| required: true | |
| type: string | |
| release: | |
| description: "Whether to create a GitHub Release" | |
| required: false | |
| default: true | |
| type: boolean | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-cli: | |
| name: "Build CLI" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Code checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.23.1 | |
| - name: Run GoReleaser | |
| if: inputs.release | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| distribution: goreleaser | |
| version: "~> v2" | |
| args: release -f .goreleaser/cli.yaml --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }} | |
| HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }} |