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 9
9
- cron : ' 0 6 * * 6'
10
10
jobs :
11
11
build :
12
- name : Deploy docs
13
12
runs-on : ubuntu-latest
14
13
steps :
15
14
- name : Download source
16
- uses : actions/checkout@v3
15
+ uses : actions/checkout@v4
17
16
- name : Install Python
18
17
uses : actions/setup-python@v4
19
18
with :
25
24
- name : Build site
26
25
run : mkdocs build
27
26
working-directory : docs
28
- - name : Deploy to gh-pages
29
- if : github.event_name == 'push' && github.ref == 'refs/heads/master'
30
- uses : oprypin/push-to-gh-pages@v3
27
+ - name : Upload to GitHub Pages
28
+ uses : actions/upload-pages-artifact@v2
31
29
with :
32
- publish_dir : site
33
- commit_message : ' Generate docs: '
30
+ path : site
31
+ deploy :
32
+ if : github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
33
+ needs : build
34
+ permissions :
35
+ pages : write
36
+ id-token : write
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - name : Deploy to GitHub Pages
40
+ id : deployment
41
+ uses : actions/deploy-pages@v2
42
+ environment :
43
+ name : github-pages
44
+ url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments