Skip to content

Commit

Permalink
Fix GoReleaser config warnings/issues
Browse files Browse the repository at this point in the history
Add version to GoReleaser configuration.

Fix deprecated `name_template` usage.

Add GitHub Action to regularly check the configuration and build.
  • Loading branch information
HeavyWombat committed Dec 16, 2024
1 parent 4a6ba6a commit dd0982c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/build-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Build Check

on:
push:
tags-ignore:
- "**"
branches:
- main
pull_request:
branches:
- main

jobs:
test-unit:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v4

- name: Run GoReleaser Check
uses: goreleaser/goreleaser-action@v6
with:
args: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser Build
uses: goreleaser/goreleaser-action@v6
with:
args: build --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
project_name: shp
version: 2

before:
hooks:
- go generate ./...
Expand Down Expand Up @@ -31,7 +34,7 @@ checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
Expand Down

0 comments on commit dd0982c

Please sign in to comment.