-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.24 KB
/
deploy.yml
File metadata and controls
51 lines (42 loc) · 1.24 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy Documentation
on:
push:
branches:
- main
workflow_dispatch:
# Trigger on changes to PlanExe repo (requires repository_dispatch or manual trigger)
repository_dispatch:
types: [docs-updated]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout PlanExe-docs
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout PlanExe (source)
uses: actions/checkout@v4
with:
repository: PlanExeOrg/PlanExe
path: planexe-source
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build documentation
run: |
PLANEXE_REPO=planexe-source DOCS_SOURCE_DIR=docs python build.py
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
cname: docs.planexe.org