From 1c83af2bfabf0e52ef1c0334ee4cf140953f52f7 Mon Sep 17 00:00:00 2001 From: "kw.lei" Date: Tue, 31 Dec 2019 10:46:50 +0800 Subject: [PATCH] add build serve --- .../{release.yml => release-client.yml} | 4 +-- .github/workflows/release-server.yml | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) rename .github/workflows/{release.yml => release-client.yml} (89%) create mode 100644 .github/workflows/release-server.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release-client.yml similarity index 89% rename from .github/workflows/release.yml rename to .github/workflows/release-client.yml index d7ed264..6ce06af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release-client.yml @@ -1,4 +1,4 @@ -name: goreleaser +name: build-client on: pull_request: @@ -17,7 +17,7 @@ jobs: with: go-version: 1.13.x - - name: Run GoReleaser + name: Run Client GoReleaser uses: goreleaser/goreleaser-action@v1 with: version: latest diff --git a/.github/workflows/release-server.yml b/.github/workflows/release-server.yml new file mode 100644 index 0000000..c387ccf --- /dev/null +++ b/.github/workflows/release-server.yml @@ -0,0 +1,27 @@ +name: build-server + +on: + pull_request: + push: + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v1 + - + name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.13.x + - + name: Run Server GoReleaser + uses: goreleaser/goreleaser-action@v1 + with: + version: latest + args: release --rm-dist + workdir: ./server + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file