Skip to content

Commit

Permalink
Bring back the fireback-react
Browse files Browse the repository at this point in the history
  • Loading branch information
torabian committed Dec 25, 2024
1 parent 309dc59 commit 6160a18
Showing 1 changed file with 36 additions and 5 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/fireback-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ on:
# - ubuntu-x64
# - windows-x64
# - macosx
build_macos:
description: "Build macos"
required: false
default: false
type: boolean
# build_macos:
# description: "Build macos"
# required: false
# default: false
# type: boolean
# autodeploy:
# description: "Deploy the binaries after build"
# required: false
Expand Down Expand Up @@ -519,6 +519,37 @@ jobs:
name: artifacts-android-react-native
path: modules/workspaces/codegen/react-native-new/android/app/build/outputs/apk/release

fireback-react:
# if: ${{ inputs.target == 'fireback-react' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- run: cd docs && npm i --force && npm run build
name: Build the docs

- name: Build the front-end
run: cd modules/workspaces/codegen/react-new && npm i --force && ./node_modules/.bin/env-cmd -f ./src/apps/projectname/.env.fbgithubpages ./node_modules/.bin/craco build

- name: Copy docs to front-end build
run: cp -R docs/build modules/workspaces/codegen/react-new/build/docs

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./modules/workspaces/codegen/react-new/build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/main' # Only deploy if on main branch
with:
folder: ./modules/workspaces/codegen/react-new/build # The folder the action should deploy.


vscode-extension:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 6160a18

Please sign in to comment.