customized syntax highlighter module #14
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 website to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
- name: Install library | |
run: | | |
npm install | |
- name: Build package | |
run: | | |
npm run build | |
- name: Build documentation | |
run: | | |
npm run docs | |
- name: Build demo application | |
run: | | |
cd demo | |
npm install | |
npm install .. --install-links | |
npm run build | |
cd .. | |
cp -R docs demo/dist | |
- name: Deploy website | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: demo/dist |