From 91eaee48a4c5f84b33e82f3e1cef614eaaaf1a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B2=92=E7=B2=92=E6=A9=99?= Date: Sun, 26 Apr 2020 17:49:40 +0800 Subject: [PATCH] release action --- .../workflows/{build.yml => dev-build.yml} | 10 ++++++++-- .github/workflows/release-build.yml | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) rename .github/workflows/{build.yml => dev-build.yml} (85%) create mode 100644 .github/workflows/release-build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/dev-build.yml similarity index 85% rename from .github/workflows/build.yml rename to .github/workflows/dev-build.yml index 64c7005..7dbfcc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/dev-build.yml @@ -1,5 +1,11 @@ -on: [push, pull_request] -name: build +on: + push: + branches: + - dev + pull_request: + branches: + - dev +name: dev-build jobs: build: strategy: diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..6a130b1 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,19 @@ +on: push +name: release-build +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: 1.14.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Build + run: ./build-all.sh + - name: Upload Binary + uses: actions/upload-artifact@v1 + with: + name: dist-release + path: ./release