From c0bf616f20296b75d0b896b094b7c16cf1e828ec Mon Sep 17 00:00:00 2001 From: Colin Seymour Date: Wed, 24 Feb 2021 10:16:57 +0000 Subject: [PATCH 1/2] Add releaser workflow --- .github/workflows/releaser.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/releaser.yml diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml new file mode 100644 index 0000000..d2f9f9e --- /dev/null +++ b/.github/workflows/releaser.yml @@ -0,0 +1,24 @@ +name: Releaser + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + name: Make Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-go@v2 + with: + go-version: '^1.15' + - uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 1ce301faada28835b6e9a83247ed240e49db3385 Mon Sep 17 00:00:00 2001 From: Colin Seymour Date: Wed, 24 Feb 2021 10:18:46 +0000 Subject: [PATCH 2/2] Add note to README about releasing --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 39ed139..2a7ce27 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,10 @@ func main() { I've written this myself from scratch, heavily influenced by the methods implemented in , as a project to help practice Go, but also because I found the Swagger Codegen'd code quite cumbersome, ugly and without any tests. The generated code is also not Go modules friendly and requires bundling with your application. You can see what I've managed to generate in the repo at . +## Releasing + +This project uses [GoReleaser](https://goreleaser.com) via GitHub Actions to make the releases quick and easy. When I'm ready for a new release, I push a new tag and the workflow takes care of things. + ## Todo - Add support for uploading activities