This repository has been archived by the owner on Aug 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
2 changed files
with
55 additions
and
2 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,49 @@ | ||
name: deploy-static | ||
on: | ||
push: | ||
branches: [master] | ||
jobs: | ||
secrets-gate: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
ok: ${{ steps.check-secrets.outputs.ok }} | ||
steps: | ||
- name: check for secrets needed to run workflows | ||
id: check-secrets | ||
run: | | ||
if [ ${{ secrets.STATIC_BUILD_ENABLED }} == 'true' ]; then | ||
echo "ok=enabled" >> $GITHUB_OUTPUT | ||
fi | ||
deploy-static: | ||
needs: | ||
- secrets-gate | ||
if: ${{ needs.secrets-gate.outputs.ok == 'enabled'}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Ethereal Engine | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: etherealengine/etherealengine | ||
- name: Checkout Project | ||
uses: actions/checkout@v3 | ||
with: | ||
path: './packages/projects/projects/${{ github.event.repository.name }}' | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: restore lerna | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
node_modules | ||
*/*/node_modules | ||
package-lock.json | ||
key: ${{ runner.os }}-branch-build-${{ hashFiles('**/package.json') }} | ||
- run: cp .env.local.default .env.local | ||
- run: npm install --production=false --loglevel notice --legacy-peer-deps | ||
- run: npm run build | ||
- name: Artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
- name: Deploy | ||
uses: actions/deploy-pages@v3 |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### ee-minimalist | ||
# ee-minimalist | ||
|
||
Build the client by itself. No servers, lightweight, and entirely customizable. | ||
Build the client by itself. No servers, lightweight, and entirely customizable. | ||
|
||
## Deploy to github pages | ||
|
||
- Set STATIC_BUILD_ENABLED to true in repo secrets |