Skip to content

Fixed copy/paste error in deploy action #48

Fixed copy/paste error in deploy action

Fixed copy/paste error in deploy action #48

name: build-and-deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install and Build
run: |
npm install
npm run build
env:
MODE: production
- name: Test
run: npm test
deploy:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install and Build
run: |
npm install
npm run build
env:
MODE: production
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs