Skip to content

add github page

add github page #3

Workflow file for this run

name: Build site
on:
push:
branches:
- main
permissions:
contents: write
jobs:
Build:
name: Build Vuepress 🔧
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install
- name: Build site
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "docs/.vuepress/dist"
- name: Deploy & update
id: deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "docs/.vuepress/dist"
publish_branch: gh-pages
Deploy:
name: Deploy to Github Pages 🚀
runs-on: ubuntu-latest
needs: Build
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1