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