diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c4ceb3..bfdfbfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -200,3 +200,23 @@ jobs: name: Check dist run: | tree -nh ./test/_output + + anchors: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.18 + - + name: GoReleaser + uses: ./ + with: + args: release --config .goreleaser-anchors.yml --skip-publish --clean --snapshot + workdir: ./test diff --git a/test/.goreleaser-anchors.yml b/test/.goreleaser-anchors.yml new file mode 100644 index 0000000..b05def4 --- /dev/null +++ b/test/.goreleaser-anchors.yml @@ -0,0 +1,23 @@ +&shared: + build: &build_base + env: + - CGO_ENABLED=0 + +env: + - GO111MODULE=on + +before: + hooks: + - go mod download + +builds: + - <<: *build_base + +archives: + - + format_overrides: + - goos: windows + format: zip + +checksum: + name_template: 'checksums.txt'