diff --git a/ci/goreleaser.yml b/ci/goreleaser.yml new file mode 100644 index 0000000000..15d7d4270a --- /dev/null +++ b/ci/goreleaser.yml @@ -0,0 +1,36 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +permissions: + contents: write + id-token: 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 + # Or with a condition on GoReleaser step: + # if: startsWith(github.ref, 'refs/tags/') + uses: goreleaser/goreleaser-action@5df302e5e9e4c66310a6b6493a8865b12c555af2 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution + # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} diff --git a/ci/properties/goreleaser.properties.json b/ci/properties/goreleaser.properties.json new file mode 100644 index 0000000000..6fc5dd2f30 --- /dev/null +++ b/ci/properties/goreleaser.properties.json @@ -0,0 +1,7 @@ +{ + "name": "GoReleaser", + "description": "GoReleaser is a Go project that helps you to release your Go projects.", + "iconName": "octicon package", + "creator": "GoReleaser", + "categories": ["Continuous integration", "GoReleaser"] +}