Files
flipper/.github/workflows/dmg-release.yml
Pascal Hartig 8ec6a6f664 Fix dmg-release.yml error (#1220)
Summary:
Key was duplicated. :(
Pull Request resolved: https://github.com/facebook/flipper/pull/1220

Reviewed By: mweststrate

Differential Revision: D21861770

Pulled By: passy

fbshipit-source-id: 6affdfbc488628465afc1a59c55ef0ec7ed61dff
2020-06-03 09:49:26 -07:00

67 lines
1.5 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'
- run: dd if=/dev/zero bs=1024k count=1024 of=1g.dmg
- run: dd if=/dev/zero bs=1024k count=10240 of=10g.dmg
- run: ls -la Flipper-mac.dmg
- name: Publish
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '*.dmg'
publish2:
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'