Merge remote-tracking branch 'origin/main' #182
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 static content to Pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/licensing.yml" | |
- "licensing/about.hbs" | |
- "licensing/about.toml" | |
- "Cargo.lock" | |
- "Cargo.toml" | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Rust latest stable | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install "cargo-about" | |
run: cargo install --locked cargo-about | |
- name: Create "docs" directory (if necessary) | |
run: | | |
if [[ ! -d docs ]]; then | |
mkdir docs | |
fi | |
- name: Generate third party license overview | |
run: cargo-about generate -o docs/licenses.html licensing/about.hbs -c licensing/about.toml | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs' | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |