From 97f3c6088f355f39b8805823094e62291bc46873 Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Fri, 5 Aug 2022 22:29:30 -0400 Subject: [PATCH] general: add GitHub actions for releasing binaries --- .github/workflows/release.yaml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..fb20e07 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,35 @@ +on: + release: + types: [created] + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin] + goarch: ["386", amd64, "arm/v7", arm64] + exclude: + - goarch: "386" + goos: darwin + - goarch: "arm/v7" + goos: darwin + - goarch: "arm/v7" + goos: windows + steps: + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.30 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + project_path: "./frontend" + binary_name: "bird-lg-go" + - uses: wangyoucao577/go-release-action@v1.30 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + project_path: "./proxy" + binary_name: "bird-lgproxy-go"