Skip to content

chore(ci): bump ossf/scorecard-action from 2.2.0 to 2.3.0 #85

chore(ci): bump ossf/scorecard-action from 2.2.0 to 2.3.0

chore(ci): bump ossf/scorecard-action from 2.2.0 to 2.3.0 #85

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: Deploy rsonbook to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
submodules: true
- name: Install Rust toolchain (${{ matrix.toolchain }})
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # master
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
- name: Override toolchain
run: rustup override set stable
- name: Cache restore (Cargo)
id: cache-restore-cargo
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: book-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Install mdbook
if: steps.cache-restore-cargo.outputs.cache-hit != 'true'
run: cargo install mdbook mdbook-katex
env:
CARGO_TARGET_DIR: target/
- name: Build the book
run: mdbook build ./book
- name: Setup Pages
uses: actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # v3.0.6
- name: Upload artifact
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
with:
path: "./book/wwwroot"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # v2.0.4