This repository has been archived by the owner on Mar 30, 2024. It is now read-only.
update docs #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
name: Build & Deploy | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: | | |
npm run docs:build | |
touch docs/.vitepress/dist | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: docs/.vitepress/dist | |
- name: Deploy | |
id: deployment | |
uses: actions/deploy-pages@v2 |