File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy docs to GitHub Pages
2
+
3
+ on :
4
+ # Runs on pushes targeting the default branch
5
+ push :
6
+ branches : [main]
7
+
8
+ # Allows you to run this workflow manually from the Actions tab
9
+ workflow_dispatch :
10
+
11
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12
+ permissions :
13
+ contents : read
14
+ pages : write
15
+ id-token : write
16
+
17
+ # Allow one concurrent deployment
18
+ concurrency :
19
+ group : " pages"
20
+ cancel-in-progress : true
21
+
22
+ jobs :
23
+ deploy :
24
+ environment :
25
+ name : github-pages
26
+ url : ${{ steps.deployment.outputs.page_url }}
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - name : Checkout
30
+ uses : actions/checkout@v3
31
+ - name : Install poetry and dependencies
32
+ uses : greenbone/actions/poetry@v1
33
+ with :
34
+ version : " 3.9"
35
+ - name : Build Documentation
36
+ run : |
37
+ cd docs && poetry run make html
38
+ - name : Upload artifact
39
+ uses : actions/upload-pages-artifact@v1
40
+ with :
41
+ path : ' docs/build/html'
42
+ - name : Deploy to GitHub Pages
43
+ id : deployment
44
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments