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 diff --git a/.goreleaser.yml b/.goreleaser.yml index 75bd300..4a29dfd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -34,5 +34,6 @@ changelog: - '^docs:' - '^test:' - typo + - '^Merge pull request' release: draft: true \ No newline at end of file