-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (37 loc) · 920 Bytes
/
docs.yml
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
36
37
name: Docs
on:
workflow_dispatch:
push:
paths:
- 'docs/**'
pull_request:
paths:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_dir: ${{ github.ref_name }}
publish_dir: ${{ steps.deployment.outputs.artifact }}
- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
- uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Copy file
run: |
cp ./assets/docs/index.html ./gh-pages/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages