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
This commit is contained in:
committed by
Facebook Github Bot
parent
96c4d24cb9
commit
b4fa7be97c
25
.github/workflows/nodejs.yml
vendored
25
.github/workflows/nodejs.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user