Skip to content

Update github_page.yml #37

Update github_page.yml

Update github_page.yml #37

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches: ["main"]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
cache: npm
- name: Install
run: cd docs && npm install
- name: Build
run: cd docs && vuepress build .
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: pages-code
build_dir: .vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.PAGE_TOKEN }}