Skip to content

chore(deps): bump codecov/codecov-action from 4.5.0 to 5.0.0 #17

chore(deps): bump codecov/codecov-action from 4.5.0 to 5.0.0

chore(deps): bump codecov/codecov-action from 4.5.0 to 5.0.0 #17

Workflow file for this run

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 }}