mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
Update README.md
This commit is contained in:
parent
46649571f8
commit
0ce7e18faa
17
README.md
17
README.md
@ -653,6 +653,8 @@ An example GitHub Actions workflow to deploy [rust-lang/mdBook] site to GitHub P
|
|||||||
|
|
||||||
[rust-lang/mdBook]: https://github.com/rust-lang/mdBook
|
[rust-lang/mdBook]: https://github.com/rust-lang/mdBook
|
||||||
|
|
||||||
|
- [peaceiris/actions-mdbook: GitHub Actions for mdBook (rust-lang/mdBook)](https://github.com/peaceiris/actions-mdbook)
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: github pages
|
||||||
|
|
||||||
@ -670,16 +672,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Setup mdbook
|
- name: Setup mdBook
|
||||||
run: |
|
uses: peaceiris/actions-mdbook@v1
|
||||||
export MDBOOK_VERSION="v0.3.5"
|
with:
|
||||||
export MDBOOK_TARBALL="mdbook-${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
|
mdbook-version: '0.3.5'
|
||||||
wget -q "https://github.com/rust-lang/mdBook/releases/download/${MDBOOK_VERSION}/${MDBOOK_TARBALL}"
|
# mdbook-version: 'latest'
|
||||||
tar -zxvf "${MDBOOK_TARBALL}"
|
|
||||||
rm "${MDBOOK_TARBALL}"
|
|
||||||
mkdir ~/bin
|
|
||||||
mv ./mdbook ~/bin/
|
|
||||||
echo "::add-path::~/bin"
|
|
||||||
|
|
||||||
- run: mdbook build
|
- run: mdbook build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user