diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml new file mode 100644 index 00000000..43f4aa2a --- /dev/null +++ b/.github/workflows/publish_release.yml @@ -0,0 +1,26 @@ +name: Publish Release + +on: + push: + tags: + - v* + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Setup go env + uses: actions/setup-go@master + with: + go-version: "1.20" + - name: goreleaser with tag + uses: goreleaser/goreleaser-action@v5 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +