Skip to content

Commit 4a19c1a

Browse files
committed
DONT MERGE
1 parent 7a5902b commit 4a19c1a

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
branches: ['*', '!*@latest']
66
push:
7-
branches: ['*@latest', 'main']
7+
branches: ['*@latest', 'main', 'use-github-page']
88
jobs:
99
debug:
1010
runs-on: ubuntu-latest
@@ -99,17 +99,25 @@ jobs:
9999
docs:
100100
runs-on: ubuntu-latest
101101
steps:
102-
- name: Checkout repository
102+
- name: Checkout
103103
uses: actions/checkout@v3.5.3
104104

105-
- name: Install dependencies
105+
- name: Install requirements
106106
run: pip3 install -r docs/requirements.txt
107107

108-
- name: Build documentation
109-
run: sphinx-build -b html docs build/docs -W --keep-going
108+
- name: Setup Pages
109+
if: github.ref == 'refs/heads/use-github-page'
110+
uses: actions/configure-pages@v3.0.6
111+
112+
- name: Build with Sphinx
113+
run: sphinx-build -b html docs docs/build -W --keep-going
110114

111-
- name: Upload documentation as artifact
115+
- name: Upload artifact
112116
uses: actions/upload-artifact@v3.1.2
113117
with:
114-
name: docs
115-
path: build/docs
118+
path: docs/build
119+
120+
- name: Deploy to GitHub Pages
121+
id: deployment
122+
if: github.ref == 'refs/heads/use-github-page'
123+
uses: actions/deploy-pages@v2.0.2

0 commit comments

Comments
 (0)