From 4d046bd85e4c7b10919aab3b751ce536acfe7068 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Mon, 13 Jan 2020 14:44:06 +0530 Subject: [PATCH] Add canary icon copy and limit push jobs for github actions --- .github/workflows/nodejs.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 8bb0f751..63f42524 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,5 +1,10 @@ name: Node CI -on: [push, pull_request] +on: + push: + branches: + - master + - canary + pull_request: jobs: ci_macos: runs-on: macos-latest @@ -16,6 +21,11 @@ jobs: run: yarn install - name: Test run: yarn run test + - name: Getting Build Icon + if: github.ref == 'refs/heads/canary' || github.base_ref == 'canary' + run: | + cp build/canary.ico build/icon.ico + cp build/canary.icns build/icon.icns - name: Build run: yarn run dist --publish=never env: @@ -45,6 +55,11 @@ jobs: run: yarn install - name: Test run: yarn run test + - name: Getting Build Icon + if: github.ref == 'refs/heads/canary' || github.base_ref == 'canary' + run: | + cp build/canary.ico build/icon.ico + cp build/canary.icns build/icon.icns - name: Build run: yarn run dist --publish=never env: @@ -95,6 +110,11 @@ jobs: run: yarn install - name: Test run: yarn run test + - name: Getting Build Icon + if: github.ref == 'refs/heads/canary' || github.base_ref == 'canary' + run: | + Copy-Item .\build\canary.ico .\build\icon.ico + Copy-Item .\build\canary.icns .\build\icon.icns - name: Build run: yarn run dist --publish=never env: