We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ca9b1 commit df2c2a8Copy full SHA for df2c2a8
1 file changed
.github/workflows/generate-documentation.yml
@@ -7,6 +7,14 @@ on:
7
pull_request:
8
branches: [main]
9
10
+ workflow_dispatch:
11
+
12
+permissions:
13
+ contents: read
14
+ pages: write
15
+ id-token: write
16
17
18
jobs:
19
run:
20
runs-on: ubuntu-latest
@@ -27,8 +35,23 @@ jobs:
27
35
- name: Generate documentation
28
36
run: python3 docs_src/generate.py
29
37
30
- - name: Save artifafts
31
- uses: actions/upload-artifact@v4
38
+ - name: Upload GitHub Pages artifact
39
+ uses: actions/upload-pages-artifact@v3
32
40
with:
33
- name: docs
34
41
path: docs
42
43
+ deploy:
44
+ if: github.ref == 'refs/heads/main'
45
46
+ needs: run
47
48
+ environment:
49
+ name: github-pages
50
+ url: ${{ steps.deployment.outputs.page_url }}
51
52
+ runs-on: ubuntu-latest
53
54
+ steps:
55
+ - name: Deploy to GitHub Pages
56
+ id: deployment
57
+ uses: actions/deploy-pages@v4
0 commit comments