From 96f49e6af6b2ec8512be1685bdb398faca6155f9 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 15 Oct 2023 01:50:41 +0800 Subject: [PATCH] chore: add build reporter release --- .github/workflows/reporter-release.yml | 27 ++++++++++++++++++++++++++ src/client/pages/Servers.tsx | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/reporter-release.yml diff --git a/.github/workflows/reporter-release.yml b/.github/workflows/reporter-release.yml new file mode 100644 index 0000000..3767d3e --- /dev/null +++ b/.github/workflows/reporter-release.yml @@ -0,0 +1,27 @@ +name: Build Reporter Release + +on: + release: + types: [created] + +jobs: + build-go-binary: + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin] + goarch: [amd64, arm64] + exclude: + - goarch: arm64 + goos: windows + steps: + - uses: actions/checkout@v3 + - uses: wangyoucao577/go-release-action@v1.30 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + project_path: ./reporter + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: 1.21.1 + binary_name: "tianji-reporter" + compress_assets: "OFF" diff --git a/src/client/pages/Servers.tsx b/src/client/pages/Servers.tsx index 68302db..93e4057 100644 --- a/src/client/pages/Servers.tsx +++ b/src/client/pages/Servers.tsx @@ -233,7 +233,7 @@ export const AddServerStep: React.FC = React.memo(() => {
run reporter with{' '} - ./reporter --url {window.location.origin} --workspace{' '} + ./tianji-reporter --url {window.location.origin} --workspace{' '} {workspaceId}