diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..bc3386f41 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,33 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +permissions: + contents: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 000000000..0f5e51356 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,18 @@ +# Visit https://goreleaser.com for documentation on how to customize this +# behavior. +before: + hooks: + - go mod tidy +source: + enabled: true + name_template: '{{ .ProjectName }}-{{ .Version }}' + format: 'tar.gz' + prefix_template: '{{ .ProjectName }}-{{ .Version }}/' +checksum: + name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' + algorithm: sha256 +release: + # Manually examine the release before it's live + draft: true +changelog: + skip: false