11 - uses: actions/checkout@v2
14 - name: Install mdbook
17 curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
18 echo `pwd`/mdbook >> $GITHUB_PATH
23 git worktree add gh-pages gh-pages
24 git config user.name "Deploy from CI"
25 git config user.email ""
27 # Delete the ref to avoid keeping history.
28 git update-ref -d refs/heads/gh-pages
32 git commit -m "Deploy $GITHUB_SHA to gh-pages"