File tree Expand file tree Collapse file tree 1 file changed +14
-28
lines changed Expand file tree Collapse file tree 1 file changed +14
-28
lines changed Original file line number Diff line number Diff line change 1
- name : Pages
1
+ name : pages
2
2
on :
3
3
push :
4
- branches : [ "main" ]
5
- pull_request :
6
- branches : [ "main" ]
7
- permissions :
8
- contents : read
9
- pages : write
10
- id-token : write
11
- concurrency :
12
- group : " pages"
13
- cancel-in-progress : true
4
+ branches : [ main ]
14
5
jobs :
15
- build :
6
+ gh-pages :
16
7
runs-on : ubuntu-latest
17
8
steps :
18
- - uses : actions/checkout@v3
19
- - uses : actions/configure-pages@v3
20
- - uses : actions/jekyll-build-pages@v1
9
+ - uses : actions/checkout@v2
10
+ - name : install
11
+ run : pip install .[all]
12
+ - name : docs
13
+ run : |
14
+ cd docs/ && make html
15
+ mv build/html/ ../public/
16
+ - name : Deploy docs to gh-pages
17
+ uses : peaceiris/actions-gh-pages@v3
21
18
with :
22
- source : ./pages/
23
- destination : ./_site
24
- - uses : actions/upload-pages-artifact@v1
25
- deploy :
26
- if : github.event_name != 'pull_request'
27
- environment :
28
- name : github-pages
29
- url : ${{ steps.deployment.outputs.page_url }}
30
- runs-on : ubuntu-latest
31
- needs : build
32
- steps :
33
- - id : deployment
34
- uses : actions/deploy-pages@v1
19
+ github_token : ${{ secrets.GITHUB_TOKEN }}
20
+ publish_dir : public/
You can’t perform that action at this time.
0 commit comments