-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
394 changed files
with
7,260 additions
and
9,592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: facebook/flipper/build-and-deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
ANDROID_PUBLISH_KEY: ${{ secrets.ANDROID_PUBLISH_KEY }} | ||
jobs: | ||
snapshot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y sdkmanager | ||
- name: Install JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
- name: Install Retry | ||
run: scripts/install-retry.sh | ||
- name: Build | ||
run: | | ||
yes | sdkmanager "platforms;android-33" || true | ||
/tmp/retry -m 3 ./gradlew :android:assembleRelease --info | ||
- name: Deploy Snapshot | ||
run: "/tmp/retry -m 3 scripts/publish-android-snapshot.sh" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
branches: | ||
- main | ||
paths: | ||
- 'desktop/package.json' | ||
- "desktop/package.json" | ||
|
||
jobs: | ||
release: | ||
|
@@ -29,7 +29,7 @@ jobs: | |
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{ steps.extract-version-commit.outputs.commit }} | ||
version_tag_prefix: 'v' | ||
version_tag_prefix: "v" | ||
version_assertion_command: 'grep -q "\"version\": \"$version\"" desktop/package.json' | ||
- name: Create release | ||
if: ${{ steps.tag-version-commit.outputs.tag != '' }} | ||
|
@@ -53,32 +53,42 @@ jobs: | |
desktop-directory: ./desktop | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ needs.release.outputs.tag }} | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18.x' | ||
- name: Install | ||
uses: nick-invision/[email protected] | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
command: cd ${{env.desktop-directory}} && yarn | ||
- name: Build | ||
run: cd ${{env.desktop-directory}} && yarn build:flipper-server --mac --dmg | ||
- name: List dist artifacts | ||
run: ls -l dist/ | ||
- name: Upload x86-64 | ||
uses: actions/[email protected] | ||
with: | ||
name: 'Flipper-server-mac-x64.dmg' | ||
path: 'dist/Flipper-server-mac-x64.dmg' | ||
- name: Upload aarch64 | ||
uses: actions/[email protected] | ||
with: | ||
name: 'Flipper-server-mac-aarch64.dmg' | ||
path: 'dist/Flipper-server-mac-aarch64.dmg' | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ needs.release.outputs.tag }} | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: "18.x" | ||
- name: Install | ||
uses: nick-invision/[email protected] | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
command: cd ${{env.desktop-directory}} && yarn | ||
- name: Build | ||
run: cd ${{env.desktop-directory}} && yarn build:flipper-server --mac --dmg --linux --win --tar | ||
- name: List dist artifacts | ||
run: ls -l dist/ | ||
- name: Upload Mac x86-64 | ||
uses: actions/[email protected] | ||
with: | ||
name: "Flipper-server-mac-x64.dmg" | ||
path: "dist/Flipper-server-mac-x64.dmg" | ||
- name: Upload Mac aarch64 | ||
uses: actions/[email protected] | ||
with: | ||
name: "Flipper-server-mac-aarch64.dmg" | ||
path: "dist/Flipper-server-mac-aarch64.dmg" | ||
- name: Upload Linux x64 | ||
uses: actions/[email protected] | ||
with: | ||
name: "flipper-server-linux.tar.gz" | ||
path: "dist/flipper-server-linux.tar.gz" | ||
- name: Upload Windows x64 | ||
uses: actions/[email protected] | ||
with: | ||
name: "flipper-server-windows.tar.gz" | ||
path: "dist/flipper-server-windows.tar.gz" | ||
|
||
build-flipper-server: | ||
needs: | ||
|
@@ -88,27 +98,27 @@ jobs: | |
desktop-directory: ./desktop | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ needs.release.outputs.tag }} | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18.x' | ||
- name: Install | ||
uses: nick-invision/[email protected] | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
command: cd ${{env.desktop-directory}} && yarn | ||
- name: Build | ||
run: cd ${{env.desktop-directory}} && yarn build:flipper-server | ||
- name: List dist artifacts | ||
run: ls -l dist/ | ||
- name: Upload flipper-server | ||
uses: actions/[email protected] | ||
with: | ||
name: 'flipper-server.tgz' | ||
path: 'dist/flipper-server.tgz' | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ needs.release.outputs.tag }} | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: "18.x" | ||
- name: Install | ||
uses: nick-invision/[email protected] | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
command: cd ${{env.desktop-directory}} && yarn | ||
- name: Build | ||
run: cd ${{env.desktop-directory}} && yarn build:flipper-server | ||
- name: List dist artifacts | ||
run: ls -l dist/ | ||
- name: Upload flipper-server | ||
uses: actions/[email protected] | ||
with: | ||
name: "flipper-server.tgz" | ||
path: "dist/flipper-server.tgz" | ||
|
||
publish: | ||
needs: | ||
|
@@ -118,76 +128,76 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ needs.release.outputs.tag }} | ||
- name: Download Flipper Server x86-64 | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: 'Flipper-server-mac-x64.dmg' | ||
path: 'Flipper-server-mac-x64.dmg' | ||
- name: Download Flipper Server aarch64 | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: 'Flipper-server-mac-aarch64.dmg' | ||
path: 'Flipper-server-mac-aarch64.dmg' | ||
- name: Download Flipper Server | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: 'flipper-server.tgz' | ||
path: 'flipper-server.tgz' | ||
- name: GitHub Upload Release Artifacts | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: aigoncharov/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
created_tag: ${{ needs.release.outputs.tag }} | ||
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 | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
run: | | ||
tar zxvf flipper-server.tgz/flipper-server.tgz | ||
cd package | ||
yarn publish | ||
- name: Open issue on failure | ||
if: failure() | ||
uses: JasonEtco/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPOSITORY: ${{ github.repository }} | ||
RUN_ID: ${{ github.run_id }} | ||
WORKFLOW_NAME: "Publish" | ||
with: | ||
filename: .github/action-failure-template.md | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ needs.release.outputs.tag }} | ||
- name: Download Flipper Server x86-64 | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "Flipper-server-mac-x64.dmg" | ||
path: "Flipper-server-mac-x64.dmg" | ||
- name: Download Flipper Server aarch64 | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "Flipper-server-mac-aarch64.dmg" | ||
path: "Flipper-server-mac-aarch64.dmg" | ||
- name: Download Flipper Server | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: "flipper-server.tgz" | ||
path: "flipper-server.tgz" | ||
- name: GitHub Upload Release Artifacts | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: aigoncharov/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
created_tag: ${{ needs.release.outputs.tag }} | ||
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 | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
run: | | ||
tar zxvf flipper-server.tgz/flipper-server.tgz | ||
cd package | ||
yarn publish | ||
- name: Open issue on failure | ||
if: failure() | ||
uses: JasonEtco/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPOSITORY: ${{ github.repository }} | ||
RUN_ID: ${{ github.run_id }} | ||
WORKFLOW_NAME: "Publish" | ||
with: | ||
filename: .github/action-failure-template.md | ||
|
||
dispatch: | ||
needs: | ||
- release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Publish Workflow Dispatch | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: benc-uk/[email protected] | ||
with: | ||
workflow: Publish Pods | ||
ref: ${{ needs.release.outputs.tag }} | ||
- name: Publish NPM | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: benc-uk/[email protected] | ||
with: | ||
workflow: Publish NPM | ||
ref: ${{ needs.release.outputs.tag }} | ||
- name: Publish Android | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: benc-uk/[email protected] | ||
with: | ||
workflow: Publish Android | ||
ref: ${{ needs.release.outputs.tag }} | ||
inputs: '{"tag": "${{ needs.release.outputs.tag }}"}' | ||
- name: Publish Workflow Dispatch | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: benc-uk/[email protected] | ||
with: | ||
workflow: Publish Pods | ||
ref: ${{ needs.release.outputs.tag }} | ||
- name: Publish NPM | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: benc-uk/[email protected] | ||
with: | ||
workflow: Publish NPM | ||
ref: ${{ needs.release.outputs.tag }} | ||
- name: Publish Android | ||
if: ${{ needs.release.outputs.tag != '' }} | ||
uses: benc-uk/[email protected] | ||
with: | ||
workflow: Publish Android | ||
ref: ${{ needs.release.outputs.tag }} | ||
inputs: '{"tag": "${{ needs.release.outputs.tag }}"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.