chore: add build reporter release

This commit is contained in:
moonrailgun 2023-10-15 01:50:41 +08:00
parent 52455f4ea2
commit 96f49e6af6
2 changed files with 28 additions and 1 deletions

27
.github/workflows/reporter-release.yml vendored Normal file
View File

@ -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"

View File

@ -233,7 +233,7 @@ export const AddServerStep: React.FC = React.memo(() => {
<div> <div>
run reporter with{' '} run reporter with{' '}
<Typography.Text code={true} copyable={true}> <Typography.Text code={true} copyable={true}>
./reporter --url {window.location.origin} --workspace{' '} ./tianji-reporter --url {window.location.origin} --workspace{' '}
{workspaceId} {workspaceId}
</Typography.Text> </Typography.Text>
<Button <Button