Files
flipper/.github/workflows/dmg-release.yml
Pascal Hartig 5d033204e8 Update dmg-release.yml (#1296)
Summary:
The second publish job actually works, so let's remove the first one.
Pull Request resolved: https://github.com/facebook/flipper/pull/1296

Test Plan: https://github.com/facebook/flipper/runs/806859866?check_suite_focus=true

Reviewed By: jknoxville

Differential Revision: D22257369

Pulled By: passy

fbshipit-source-id: 72acc2e8ee10ad4514e315d57f4fa44656fce4e3
2020-06-26 07:52:25 -07:00

47 lines
1.0 KiB
YAML

name: Publish DMG App On Release
on:
release:
types: [created]
jobs:
build:
runs-on: macos-latest
env:
desktop-directory: ./desktop
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install
run: yarn
working-directory: ${{env.desktop-directory}}
- name: Build
run: yarn build --mac --mac-dmg
working-directory: ${{env.desktop-directory}}
- name: Upload
uses: actions/upload-artifact@v1
with:
name: 'Flipper-mac.dmg'
path: 'dist/Flipper-mac.dmg'
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download
uses: actions/download-artifact@v1
with:
name: 'Flipper-mac.dmg'
path: 'Flipper-mac.dmg'
- name: GitHub Upload Release Artifacts
uses: Roang-zero1/github-upload-release-artifacts-action@v2.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '*.dmg'