Skip to content

Add a --reset-style flag to the CLI #258

Add a --reset-style flag to the CLI

Add a --reset-style flag to the CLI #258

Workflow file for this run

name: Main
on: push
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Verify
run: |
go mod tidy
go generate ./...
go test ./...
goreleaserFlags=()
goreleaserFlags+=(--release-notes ./.github/RELEASE_TEMPLATE.md)
if [ "${GITHUB_REF_TYPE}" != "tag" ]; then
goreleaserFlags+=(--snapshot)
fi
echo "GORELEASER_FLAGS=${goreleaserFlags[@]}" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: v2
args: release ${{ env.GORELEASER_FLAGS }}
env:
GITHUB_TOKEN: ${{ secrets.BMASTERS_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist-archives
path: dist/*.tar.gz