File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,22 @@ jobs:
13
13
14
14
steps :
15
15
- uses : actions/checkout@v2
16
+ with :
17
+ fetch-depth : 0
16
18
- name : Setup Rust toolchain
17
19
run : TARGET=x86_64-unknown-linux-gnu sh ./ci/install-rust.sh
18
20
- name : Generate documentation
19
21
run : LIBC_CI=1 sh ci/dox.sh
20
- - name : Upload documentation to GitHub Pages
21
- uses : rust-lang/simpleinfra/github-actions/static-websites@master
22
- with :
23
- deploy_dir : target/doc
24
- github_token : " ${{ secrets.GITHUB_TOKEN }}"
25
- if : github.ref == 'refs/heads/master'
22
+ - name : Deploy GitHub Pages
23
+ run : |
24
+ git worktree add gh-pages gh-pages
25
+ git config user.name "Deploy from CI"
26
+ git config user.email ""
27
+ cd gh-pages
28
+ # Delete the ref to avoid keeping history.
29
+ git update-ref -d refs/heads/gh-pages
30
+ rm -rf *
31
+ mv ../target/doc/* .
32
+ git add .
33
+ git commit -m "Deploy $GITHUB_SHA to gh-pages"
34
+ git push --force
You can’t perform that action at this time.
0 commit comments