We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40cd77 commit ff610c3Copy full SHA for ff610c3
.github/workflows/docs.yml
@@ -6,15 +6,18 @@ on:
6
pull_request:
7
branches: [ main ]
8
9
+permissions:
10
+ contents: write
11
+
12
jobs:
- build:
13
+ build-and-deploy:
14
runs-on: ubuntu-latest
15
16
steps:
- - uses: actions/checkout@v3
17
+ - uses: actions/checkout@v4
18
19
- name: Set up Python
- uses: actions/setup-python@v4
20
+ uses: actions/setup-python@v5
21
with:
22
python-version: '3.10'
23
@@ -34,3 +37,10 @@ jobs:
34
37
35
38
name: documentation
36
39
path: docs/_build/html
40
41
+ - name: Deploy to GitHub Pages
42
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
43
+ uses: peaceiris/actions-gh-pages@v4
44
+ with:
45
+ github_token: ${{ secrets.GITHUB_TOKEN }}
46
+ publish_dir: docs/_build/html
0 commit comments