Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Jul 8, 2023
1 parent 068b51c commit 2afd0dc
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy-static.yml
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
8 changes: 6 additions & 2 deletions readme.md
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

0 comments on commit 2afd0dc

Please sign in to comment.