Skip to content

Handle Tree.toXML to return proper XML string (#805) #515

Handle Tree.toXML to return proper XML string (#805)

Handle Tree.toXML to return proper XML string (#805) #515

name: Github Page Publish
on:
push:
branches:
- 'main'
paths-ignore:
- 'test/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Setup Node 🔧
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Cache Node Moudles
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- name: Build 🔧
run: |
npm run build
npm run build:docs
npm run build:examples
npm run build:ghpages
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./ghpages
enable_jekyll: false