Skip to content

deploy to github pages #3

deploy to github pages

deploy to github pages #3

Workflow file for this run

name: Build and Deploy to GitHub Pages
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build project
run: npm install && npm run generateParser && npm run createDistribution && npm run bundle && npm run fix
- name: Test project
run: npm test
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: dist