Merge pull request #67 from cryspen/franziskus/drop-tests-from-package #82
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: Deploy Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
rustdoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hecrj/setup-rust-action@master | |
- uses: actions/checkout@master | |
- name: Build docs | |
run: | | |
cargo doc --all-features --no-deps | |
touch target/doc/.nojekyll | |
cat > target/doc/index.html <<EOF | |
<!doctype html> | |
<html><head> | |
<meta http-equiv="refresh" content="0; URL='hpke_rs/index.html'" /> | |
</head></html> | |
EOF | |
- name: Deploy to Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: target/doc |