diff --git a/.github/workflows/build-check.yaml b/.github/workflows/build-check.yaml new file mode 100644 index 000000000..f8467ba36 --- /dev/null +++ b/.github/workflows/build-check.yaml @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 8af0b2b4f..183153acb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,7 @@ --- +project_name: shp +version: 2 + before: hooks: - go generate ./... @@ -31,7 +34,7 @@ checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ incpatch .Version }}-next" + version_template: "{{ incpatch .Version }}-next" changelog: sort: asc