Add Cargo.lock changes after updating crate version #19
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: Build & Publish Documentation | |
on: | |
push: | |
branches: [ "develop", "main" ] | |
tags: [ "v*" ] | |
permissions: | |
contents: read | |
packages: none | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
build: | |
name: Build Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y libxapian-dev | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
override: true | |
toolchain: stable | |
components: clippy | |
- uses: actions/cache@v3 | |
with: | |
key: cargo-${{ hashFiles('**/Cargo.lock') }}-ci | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Build Docs | |
uses: actions-rs/cargo@v1 | |
with: | |
toolchain: stable | |
command: doc | |
args: --no-deps | |
- name: Generate Index Redirect | |
run: echo '<meta http-equiv="refresh" content="0;url=xapian_rs/index.html">' >target/doc/index.html | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'target/doc' | |
deploy: | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |