Skip to content

fix(deps): update golang.org/x/exp digest to 7588d65 #118

fix(deps): update golang.org/x/exp digest to 7588d65

fix(deps): update golang.org/x/exp digest to 7588d65 #118

Workflow file for this run

name: Build and Release
on:
pull_request:
branches:
- main
- master
types:
- opened
- synchronize
paths:
- .github/workflows/build-release.yml
pull_request_target:
branches:
- main
- master
types:
- opened
- synchronize
- reopened
- closed
merge_group:
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merged == true && github.base_ref || github.event.pull_request.head.sha }}
- name: 🏷️ Bump version and push tag
id: tag-version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: "minor"
custom_release_rules: "feat:minor:✨ Features,fix:patch:πŸ› Fixes,docs:patch:πŸ“° Docs,chore:patch:🎨 Chore,pref:patch:🎈 Performance improvements,refactor:patch:🧹 Refactoring,build:patch:πŸ” Build,ci:patch:πŸ” CI,revert:patch:βͺ Revert,style:patch:🧹 Style,test:patch:πŸ‘€ Test,release:major:πŸ“¦ Release"
dry_run: ${{ github.event.pull_request.merged == true && 'false' || 'true' }}
- name: 🏷️ Fetch tags
run: git fetch --tags
- name: πŸ› οΈ Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: πŸ“¦ Install dependencies
run: go mod download
- name: πŸ§ͺ Test
run: go test -v ./...
- name: πŸš€ GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --clean ${{ github.event.pull_request.merged == false && '--skip=validate,publish --snapshot' || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ“¦ Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
- name: 🧹 Check formatting
run: |
go fmt ./...
git diff --exit-code