diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..1165a24 --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,24 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + # Note: We don't need to setup Go here, because we don't distribute + # binaries and thus don't need to build anything + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..e8f7557 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,10 @@ +builds: + # This is a library project, we don't want to build any binaries. + # Building and testing is performed in the CI workflow + - skip: true +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'