From b8a51f9373041d4b5d2feedbd5d1664e0519cd04 Mon Sep 17 00:00:00 2001 From: kenny Date: Wed, 14 Feb 2024 15:07:06 +0800 Subject: [PATCH] chore: auto build binary after released --- .github/workflows/go-binary-release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/go-binary-release.yml diff --git a/.github/workflows/go-binary-release.yml b/.github/workflows/go-binary-release.yml new file mode 100644 index 0000000..a492e97 --- /dev/null +++ b/.github/workflows/go-binary-release.yml @@ -0,0 +1,24 @@ +name: Go Binary Release + +on: + push: + tags: + - "v*.*.*" + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build + run: ./dockerbuild.sh build && sudo mv ./bin/out/pgcapture ./bin/out/pgcapture-linux-amd64 + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: ./bin/out/pgcapture-linux-amd64 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}