Skip to content

New caching methods #69

New caching methods

New caching methods #69

Workflow file for this run

name: Docs
on:
push:
branches:
- 'master'
permissions:
contents: read
pages: write
id-token: write
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: Cargo Doc
run: |
cargo doc --color=always --no-deps --all
echo "<meta http-equiv=\"refresh\" content=\"0; url=renoir\">" > target/doc/index.html
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Fix file permissions
shell: sh
run: |
chmod -c -R +rX "target/doc" |
while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: target/doc
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2