Skip to content

Revert/deploy GitHub Packages #10

Revert/deploy GitHub Packages

Revert/deploy GitHub Packages #10

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- uses: pnpm/action-setup@v2.2.2
with:
version: 8.7.1
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build docs
run: pnpm run docs
- name: Copy example folder
run: cp -R example/* docs/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: docs