File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 6
6
- cron : ' 0 6 * * 6'
7
7
jobs :
8
8
build :
9
- name : Deploy docs
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- name : Download source
13
- uses : actions/checkout@v3
12
+ uses : actions/checkout@v4
14
13
- name : Install Python
15
14
uses : actions/setup-python@v4
16
15
with :
19
18
run : pip install --no-deps -r docs/requirements.txt
20
19
- name : Build site
21
20
run : mkdocs build
22
- - name : Deploy to gh-pages
23
- if : github.event_name == 'push' && github.ref == 'refs/heads/master'
24
- uses : oprypin/push-to-gh-pages@v3
21
+ - name : Upload to GitHub Pages
22
+ uses : actions/upload-pages-artifact@v2
25
23
with :
26
- publish_dir : site
27
- commit_message : ' Generate docs: '
24
+ path : site
25
+ deploy :
26
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
27
+ needs : build
28
+ permissions :
29
+ pages : write
30
+ id-token : write
31
+ environment :
32
+ name : github-pages
33
+ url : ${{ steps.deployment.outputs.page_url }}
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - name : Deploy to GitHub Pages
37
+ id : deployment
38
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments