[release-0.29] 🌱 Bump the all-github-actions group across 1 directory with 3 updates #1152
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: | |
| pull_request: | |
| paths: | |
| - .github/workflows/goreleaser.yml | |
| - .goreleaser.yaml | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| goreleaser: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Free disk space | |
| uses: thiagokokada/free-disk-space@9a03d73a373bab1e204b8815f5c7752392482762 | |
| with: | |
| # All of these do save some disk space, but are also somewhat slow to delete. | |
| # So we keep them to just speed up the workflow overall. | |
| android: false | |
| aws-cli: false | |
| debug: false | |
| docker-images: false | |
| google-cloud-sdk: false | |
| heroku: false | |
| llvm: false | |
| opt: false | |
| powershell: false | |
| python: false | |
| ruby: false | |
| rust: false | |
| tool-cache: false | |
| usrlocal: false | |
| usrmisc: false | |
| varcache: false | |
| - name: Checkout | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # tag=v6.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go | |
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # tag=v6.1.0 | |
| with: | |
| go-version: v1.24.9 | |
| - name: Delete non-semver tags | |
| run: 'git tag -d $(git tag -l | grep -v "^v")' | |
| - name: Set LDFLAGS | |
| run: echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV | |
| - name: Run GoReleaser on tag | |
| if: github.event_name != 'pull_request' | |
| uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # tag=v6.4.0 | |
| with: | |
| distribution: goreleaser | |
| version: "~> v2" | |
| args: release --timeout 60m | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }} | |
| - name: Run GoReleaser on pull request | |
| if: github.event_name == 'pull_request' | |
| uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # tag=v6.4.0 | |
| with: | |
| distribution: goreleaser | |
| version: "~> v2" | |
| args: release --timeout 60m --snapshot | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }} | |
| - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # tag=v5.0.0 | |
| if: ${{ always() }} | |
| with: | |
| name: binaries | |
| path: dist/*.tar.gz |