ci: add index.html.

Currently this is just a redirect, but we could build for different versions and
add a menu.
This commit is contained in:
John Maximilian
2023-03-08 11:41:58 +00:00
parent ecc1345338
commit 357995a15a
2 changed files with 9 additions and 2 deletions

8
.github/static-files/index.html vendored Normal file
View File

@ -0,0 +1,8 @@
<html>
<head>
<meta http-equiv="Refresh" content="0; url='magick_rust/index.html'" />
</head>
<body>
<p>Please <a href="magick_rust/index.html">click here</a> if you are not automatically redirected.</p>
</body>
</html>

View File

@ -31,6 +31,7 @@ jobs:
- name: build docs - name: build docs
run: | run: |
cargo doc --no-deps cargo doc --no-deps
cp .github/static-files/index.html target/doc/
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:
@ -43,8 +44,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages