deploy-client #240
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: deploy-client | |
on: | |
workflow_run: | |
workflows: [CI-TEST] | |
types: [completed] | |
branches: [main] | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/client/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
CI: false | |
PUBLIC_URL: "/lasso" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Fix node version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: packages/client/build # The folder the action should deploy. | |
clean-exclude: /data |