diff --git a/.github/workflows/gorelease.yml b/.github/workflows/gorelease.yml new file mode 100644 index 0000000..e3df914 --- /dev/null +++ b/.github/workflows/gorelease.yml @@ -0,0 +1,25 @@ +name: Release with goreleaser +on: + push: + branches: + - "!*" + tags: + - "v*.*.*" +jobs: + build: + runs-on: ubuntu-latest + name: goreleaser + steps: + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.16.5 + id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + - name: goreleaser + uses: goreleaser/goreleaser-action@master + with: + args: release + env: + GITHUB_TOKEN: ${{ secrets.GO_GITHUB_TOKEN }}