-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 756 Bytes
/
main.yml
File metadata and controls
35 lines (28 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and Deploy Docs
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js v18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build documentation
run: npm run docs:build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3.9.3
with:
personal_token: ${{ secrets.GH_TOKENBOT }}
publish_dir: ./.vitepress/dist
force_orphan: true
user_name: 'AlexDeveloperBot'
user_email: 'hosting@alexdevuwu.com'
commit_message: "Deploy documentation to gh-pages"