guyutongxue is building Genius Invokation (Beta version) #26
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
name: 📦 Build Genius Invokation (Beta version) | |
run-name: ${{ github.actor }} is building Genius Invokation (Beta version) | |
# This CI workflow is expected run at genius-invokation/genius-invokation-beta repository. | |
# Do NOT push on `beta` branch on the main repo. | |
on: | |
push: | |
branches: ["beta"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
Build-Core: | |
name: ⚙️ Build TypeScript Core | |
runs-on: ubuntu-latest | |
env: | |
SERVER_HOST: gi.xqm32.org | |
WEB_CLIENT_BASE_PATH: /beta/ | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Run Build | |
run: | | |
bun install | |
bun run build -n standalone | |
- name: Run Tests | |
run: bun run test | |
- id: deployment | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: packages/standalone/dist | |
Deploy-Frontend: | |
name: 🌐 Deploy Standalone Frontend | |
needs: Build-Core | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- id: deployment | |
uses: actions/deploy-pages@v4 |