intro changed for rs-stl #143
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 rs-stl Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Generate documentation | |
run: cargo doc --no-deps | |
- name: Generate index.html file | |
run: | | |
echo "<meta http-equiv=refresh content=0;url=stl/index.html>" > target/doc/index.html | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./target/doc | |
force_orphan: true | |
publish_branch: gh-pages |