Use cp to create redirect

This commit is contained in:
Diggory Hardy 2020-12-15 11:47:54 +00:00
parent d4b180db8e
commit 34423a6bc8
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ jobs:
# --all builds all crates, but with default features for other crates (okay in this case)
run: |
cargo doc --all --features nightly,serde1,getrandom,small_rng
echo '<meta http-equiv="refresh" content="0; URL=rand/index.html"/>' > target/doc/index.html
cp utils/redirect.html target/doc/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:

1
utils/redirect.html Normal file
View File

@ -0,0 +1 @@
<meta http-equiv="refresh" content="0; URL=rand/index.html"/>