Skip to content

Fix deploy

Fix deploy #15

Workflow file for this run

name: React-app-deployment
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: mxstatus
env:
NODE_OPTIONS: --openssl-legacy-provider
steps:
- uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
cache-dependency-path: mxstatus/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
env:
CI: false
run: pnpm run build
- name: Deploy react app to github pages
run: |
git config user.name github-actions
git config user.email [email protected]
git --work-tree build add --all
git commit -m "Auto deployment"
git push origin HEAD:gh-pages --force