Replace zero-index call to get() with first() #138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages | |
on: | |
push: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build source code documentation | |
run: cargo doc --lib --no-deps | |
- name: Create redirection page | |
run: | | |
echo '<!DOCTYPE html>' > ./target/doc/index.html | |
echo '<html><head><meta http-equiv="refresh" content="0; url=rekee/index.html"></head></html>' >> ./target/doc/index.html | |
- name: Deploy source code documentation | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc |