File tree Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Expand file tree Collapse file tree 1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change 12
12
tags :
13
13
- " *"
14
14
15
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16
+ permissions :
17
+ contents : read
18
+ pages : write
19
+ id-token : write
20
+
21
+ # Allow one concurrent deployment
22
+ concurrency :
23
+ group : " pages"
24
+ cancel-in-progress : true
25
+
15
26
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16
27
jobs :
17
28
# This workflow contains a single job called "build"
@@ -35,16 +46,22 @@ jobs:
35
46
36
47
- name : Install dependencies
37
48
run : |
38
- python -m pip install --upgrade pip
49
+ python -m pip install --upgrade pip setuptools wheel
39
50
python -m pip install --upgrade -r requirements.txt
40
51
python -m pip install --upgrade -r requirements/documentation.txt
41
- python -m pip install --upgrade ghp-import
42
52
43
53
- name : Build static website
44
54
run : mkdocs build --verbose
45
55
46
- - name : Deploy to Github Pages
47
- run : |
48
- git config --global user.name "Guts"
49
- git config --global user.email "[email protected] "
50
- ghp-import --force --no-jekyll --no-history --push site
56
+ - name : Setup Pages
57
+ uses : actions/configure-pages@v3
58
+
59
+ - name : Upload artifact
60
+ uses : actions/upload-pages-artifact@v1
61
+ with :
62
+ # Upload entire repository
63
+ path : site
64
+
65
+ - name : Deploy to GitHub Pages
66
+ id : deployment
67
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments