This repository has been archived by the owner on May 1, 2024. It is now read-only.
add user score under critter #52
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 And Deploy | |
on: | |
push: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: extractions/setup-just@v1 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Build the frontend | |
run: | | |
just fe_build | |
pushd frontend/packages/app/dist/ | |
mv CarbonCritters/* . | |
popd | |
- name: Configure GitHub Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload static resources artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: frontend/packages/app/dist/ | |
- name: Deploy the frontend to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |