Skip to content

updated deploy.yml

updated deploy.yml #21

Workflow file for this run

name: Deploy VitePress site to Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install Dependencies
run: npm ci vitepress
- name: Build VitePress site
run: npm run docs:build --prefix wiki
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: vitepress-site
path: wiki/docs/.vitepress/dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: vitepress-site
path: wiki/docs/.vitepress/dist
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: wiki/docs/.vitepress/dist