chore(deps): bump codecov/codecov-action from 4.5.0 to 5.0.0 #17
Workflow file for this run
This file contains 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: | |
- '*' | |
pull_request: | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_CLI_EXPERIMENTAL: "enabled" | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.6' | |
cache: false | |
# if tag release | |
- | |
name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_TAP: ${{ secrets.HOMEBREW_TAP }} | |
# if no tag test release build | |
- | |
name: Run GoReleaser skip publishing | |
uses: goreleaser/goreleaser-action@v6 | |
if: "!startsWith(github.ref, 'refs/tags/v')" | |
with: | |
version: latest | |
args: release --skip=publish --skip=validate | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_TAP: ${{ secrets.HOMEBREW_TAP }} |