Skip to content

link to the rustlings lifetimes fixed #33

link to the rustlings lifetimes fixed

link to the rustlings lifetimes fixed #33

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: mdbook-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install mdbook
run: |
which mdbook || cargo install mdbook
which mdbook-keeper || cargo install mdbook-keeper
which mdbook-cmdrun || cargo install mdbook-cmdrun
which mdbook-footnote || cargo install mdbook-footnote
- name: Deploy GitHub Pages
run: |
# This assumes your book is in the root of your repository.
# Just add a `cd` here if you need to change to another directory.
cd book
mdbook build
git worktree add gh-pages
git config user.name "Deploy from CI"
git config user.email ""
cd gh-pages
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
rm -rf *
mv ../book/* .
git add .
git commit -m "Deploy $GITHUB_SHA to gh-pages"
git push --force --set-upstream origin gh-pages