Add blog post for 1.71 #2017
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Detect the installed Rust version | |
id: rustc | |
run: echo "::set-output name=version::$(rustc -V)" | |
- name: Cache Cargo's registry cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cargo/registry/cache | |
key: cargo-registry-cache-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
cargo-registry-cache- | |
- name: Cache Cargo's registry index | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cargo/registry/index | |
key: cargo-registry-index-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
cargo-registry-index- | |
- name: Cache Cargo's target directory | |
uses: actions/cache@v2 | |
with: | |
path: target | |
key: cargo-build-${{ steps.rustc.outputs.version }}-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
cargo-build-${{ steps.rustc.outputs.version }}- | |
- run: cargo run | |
- run: cp CNAME ./site/ | |
- run: touch site/.nojekyll | |
- uses: JamesIves/github-pages-deploy-action@releases/v3 | |
if: github.ref == 'refs/heads/master' | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: site |