From 9b9c2d2d739a747c64114cdcb1cf3acbaecc453e Mon Sep 17 00:00:00 2001 From: 1Conan Date: Mon, 24 Jun 2024 23:00:27 +0800 Subject: [PATCH] ci: build and release --- .github/workflows/build-release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build-release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 00000000000000..21c9476019d00c --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,24 @@ +name: Build & Release +on: + push: + +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.21.1' + + - name: Build + run: cd src && ./make.bash + + - name: Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ github.head_ref || github.ref_name }}/${{ github.sha }} + files: | + bin/go + bin/gofmt