obsolete chains #36
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
# This workflow will build 'client' folder, test and deploy to github pages on branch gh-pages | |
# For more information see: | |
# - https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
# - https://github.com/marketplace/actions/deploy-to-github-pages | |
name: Build and Deploy Frontend | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@master | |
with: | |
node-version: "18.x" | |
registry-url: "https://npm.pkg.github.com" | |
cache: "yarn" | |
cache-dependency-path: "./client/yarn.lock" | |
- name: Install dependencies | |
working-directory: ./client | |
run: yarn install --frozen-lockfile | |
- name: Build 🔧 | |
working-directory: ./client | |
env: | |
CI: false | |
run: PUBLIC_URL="." yarn build | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: ./client/build # The folder which will be deployed. |