From b923bcfdf160a34de5be110bc041551b13cb15bc Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 5 Mar 2020 08:10:24 -0800 Subject: [PATCH] Build and upload dmg on release (#852) Summary: We're no longer building this internally because it requires a Mac to build and we only use it in OSS. Pull Request resolved: https://github.com/facebook/flipper/pull/852 Reviewed By: mweststrate Differential Revision: D20250521 Pulled By: passy fbshipit-source-id: c1691c62b2db3bc22cb0231040f593a35ec4f17e --- .github/workflows/android.yml | 2 +- .github/workflows/dmg-release.yml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/dmg-release.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 2f4d73783..d9288001d 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,4 +1,4 @@ -name: Publish Sample App +name: Publish Android Sample App On Release on: release: diff --git a/.github/workflows/dmg-release.yml b/.github/workflows/dmg-release.yml new file mode 100644 index 000000000..c9bf4ef6a --- /dev/null +++ b/.github/workflows/dmg-release.yml @@ -0,0 +1,24 @@ +name: Publish DMG App On Release + +on: + release: + types: [created] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - name: Build + run: yarn build --mac --mac-dmg + - name: Upload + uses: skx/github-action-publish-binaries@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: 'dist/Flipper-mac.dmg'