Electron distribution announcement
Summary: Update our README file with an announcement of our distribution change. I will pair the announcement with an update to our GitHub workflow as to not produce any more Electron builds for future releases. Changelog: Flipper Electron distribution change announcement. Reviewed By: aigoncharov Differential Revision: D51616454 fbshipit-source-id: 5ff513b3d99c8100ed8241d1bdafebf1d6dcfa10
This commit is contained in:
committed by
Facebook GitHub Bot
parent
24fa44448e
commit
57584a38fa
121
.github/workflows/release.yml
vendored
121
.github/workflows/release.yml
vendored
@@ -45,38 +45,6 @@ jobs:
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
build-mac:
|
||||
needs:
|
||||
- release
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
desktop-directory: ./desktop
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.5.3
|
||||
with:
|
||||
ref: ${{ needs.release.outputs.tag }}
|
||||
- uses: actions/setup-node@v3.6.0
|
||||
with:
|
||||
node-version: '18.x'
|
||||
- name: Install
|
||||
uses: nick-fields/retry@v2.8.3
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn
|
||||
- name: Build
|
||||
uses: nick-fields/retry@v2.8.3
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn build --mac --mac-dmg
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
name: 'Flipper-mac.dmg'
|
||||
path: 'dist/Flipper-mac.dmg'
|
||||
|
||||
build-server-mac:
|
||||
needs:
|
||||
- release
|
||||
@@ -112,72 +80,6 @@ jobs:
|
||||
name: 'Flipper-server-mac-aarch64.dmg'
|
||||
path: 'dist/Flipper-server-mac-aarch64.dmg'
|
||||
|
||||
build-linux:
|
||||
needs:
|
||||
- release
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
desktop-directory: ./desktop
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.5.3
|
||||
with:
|
||||
ref: ${{ needs.release.outputs.tag }}
|
||||
- uses: actions/setup-node@v3.6.0
|
||||
with:
|
||||
node-version: '18.x'
|
||||
- name: Install
|
||||
uses: nick-fields/retry@v2.8.3
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn
|
||||
- name: Build
|
||||
uses: nick-fields/retry@v2.8.3
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn build --linux
|
||||
- name: Upload Linux
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
name: 'Flipper-linux.zip'
|
||||
path: 'dist/Flipper-linux.zip'
|
||||
|
||||
build-win:
|
||||
needs:
|
||||
- release
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
desktop-directory: ./desktop
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3.5.3
|
||||
with:
|
||||
ref: ${{ needs.release.outputs.tag }}
|
||||
- uses: actions/setup-node@v3.6.0
|
||||
with:
|
||||
node-version: '18.x'
|
||||
- name: Install
|
||||
uses: nick-fields/retry@v2.8.3
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
shell: pwsh
|
||||
command: cd ${{env.desktop-directory}}; yarn
|
||||
- name: Build
|
||||
uses: nick-fields/retry@v2.8.3
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
shell: pwsh
|
||||
command: cd ${{env.desktop-directory}}; yarn build --win
|
||||
- name: Upload Windows
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
name: 'Flipper-win.zip'
|
||||
path: 'dist/Flipper-win.zip'
|
||||
|
||||
build-flipper-server:
|
||||
needs:
|
||||
- release
|
||||
@@ -210,9 +112,6 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs:
|
||||
- build-win
|
||||
- build-linux
|
||||
- build-mac
|
||||
- build-server-mac
|
||||
- build-flipper-server
|
||||
- release
|
||||
@@ -222,12 +121,6 @@ jobs:
|
||||
- uses: actions/checkout@v3.5.3
|
||||
with:
|
||||
ref: ${{ needs.release.outputs.tag }}
|
||||
- name: Download Mac
|
||||
if: ${{ needs.release.outputs.tag != '' }}
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: 'Flipper-mac.dmg'
|
||||
path: 'Flipper-mac.dmg'
|
||||
- name: Download Flipper Server x86-64
|
||||
if: ${{ needs.release.outputs.tag != '' }}
|
||||
uses: actions/download-artifact@v1
|
||||
@@ -240,18 +133,6 @@ jobs:
|
||||
with:
|
||||
name: 'Flipper-server-mac-aarch64.dmg'
|
||||
path: 'Flipper-server-mac-aarch64.dmg'
|
||||
- name: Download Linux
|
||||
if: ${{ needs.release.outputs.tag != '' }}
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: 'Flipper-linux.zip'
|
||||
path: 'Flipper-linux.zip'
|
||||
- name: Download Windows
|
||||
if: ${{ needs.release.outputs.tag != '' }}
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: 'Flipper-win.zip'
|
||||
path: 'Flipper-win.zip'
|
||||
- name: Download Flipper Server
|
||||
if: ${{ needs.release.outputs.tag != '' }}
|
||||
uses: actions/download-artifact@v1
|
||||
@@ -265,7 +146,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
created_tag: ${{ needs.release.outputs.tag }}
|
||||
args: Flipper-mac.dmg/Flipper-mac.dmg Flipper-linux.zip/Flipper-linux.zip Flipper-win.zip/Flipper-win.zip flipper-server.tgz/flipper-server.tgz Flipper-server-mac-x64.dmg/Flipper-server-mac-x64.dmg Flipper-server-mac-aarch64.dmg/Flipper-server-mac-aarch64.dmg
|
||||
args: flipper-server.tgz/flipper-server.tgz Flipper-server-mac-x64.dmg/Flipper-server-mac-x64.dmg Flipper-server-mac-aarch64.dmg/Flipper-server-mac-aarch64.dmg
|
||||
- name: Set up npm token
|
||||
run: echo "//registry.yarnpkg.com/:_authToken=${{ secrets.FLIPPER_NPM_TOKEN }}" >> ~/.npmrc
|
||||
- name: Publish flipper-server on NPM
|
||||
|
||||
Reference in New Issue
Block a user