From b4fa7be97c527007b6316cfc92db17761170c66f Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 14 Feb 2020 12:53:59 -0800 Subject: [PATCH] Upload Flipper artifacts from GH Actions (#801) Summary: This makes testing and verifying of PRs much easier as you can directly download the resulting artifact from GitHub. Close https://github.com/facebook/flipper/issues/796. Pull Request resolved: https://github.com/facebook/flipper/pull/801 Test Plan: https://github.com/facebook/flipper/runs/446036416 Reviewed By: mweststrate Differential Revision: D19903724 Pulled By: passy fbshipit-source-id: 9efe37e93b2373d1ec98640496322ad85ea9a21b --- .github/workflows/nodejs.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index af4b054e7..c9b291ef5 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,8 +9,8 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x] - os: ['ubuntu-latest', 'windows-latest'] + node-version: [12.x] + os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] steps: - uses: actions/checkout@v1 @@ -27,6 +27,27 @@ jobs: - name: build linux if: matrix.os == 'ubuntu-latest' run: yarn build --linux + - name: build macos + if: matrix.os == 'macos-latest' + run: yarn build --mac - name: build windows if: matrix.os == 'windows-latest' run: yarn build --win + - name: upload linux artifact + uses: actions/upload-artifact@v1 + if: matrix.os == 'ubuntu-latest' + with: + name: Flipper-linux.zip + path: dist/Flipper-linux.zip + - name: upload windows artifact + uses: actions/upload-artifact@v1 + if: matrix.os == 'windows-latest' + with: + name: Flipper-win.zip + path: dist/Flipper-win.zip + - name: upload mac artifact + uses: actions/upload-artifact@v1 + if: matrix.os == 'macos-latest' + with: + name: Flipper-mac.zip + path: dist/Flipper-mac.zip