diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 940766d0..1fb99298 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -38,10 +38,10 @@ jobs: semgrep scan --config auto --dryrun -q --include "**.go" - name: Cross-platform checks - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 with: version: latest - args: build --skip-validate --rm-dist --snapshot --timeout=30m + args: build --clean --skip=validate --snapshot --timeout=30m - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/release-publish.yaml b/.github/workflows/release-publish.yaml index 236e3962..59f77756 100644 --- a/.github/workflows/release-publish.yaml +++ b/.github/workflows/release-publish.yaml @@ -19,11 +19,11 @@ jobs: go-version: 1.18 - name: "Create release on GitHub" - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: - args: "release --rm-dist" + args: "release --clean" version: latest publish: diff --git a/.goreleaser.yml b/.goreleaser.yml index 376eca5a..dba9c1af 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,13 +11,23 @@ builds: - arm - arm64 ldflags: - - -s -w -X teler.app/common.Version=v{{.Version}} - -archives: - - id: tgz - format: tar.gz - replacements: - darwin: macOS - format_overrides: - - goos: windows - format: zip + - -s -w -X github.com/kitabisa/teler/common.Version=v{{.Version}} + +checksum: + name_template: "{{ .ProjectName }}_checksums.txt" + +snapshot: + name_template: "{{ .Tag }}-{{.ShortCommit}}" + +changelog: + sort: asc + filters: + exclude: + - "^docs" + - "^chore" + - "^style" + - "^refactor" + - "^test" + - Merge pull request + - Merge branch + - go mod tidy \ No newline at end of file diff --git a/Makefile b/Makefile index 1519f36e..c40b0213 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ build-all: echo " See https://goreleaser.com/install/" >&2; \ exit 1; \ fi; \ - goreleaser build --rm-dist --skip-validate --snapshot --timeout=30m + goreleaser build --clean --skip=validate --snapshot --timeout=30m test: lint build-all clean # @echo "--- Testing ${APP_NAME} ${VERSION}"