Skip to content

python polars 0.18.7 (#9844) #101

python polars 0.18.7 (#9844)

python polars 0.18.7 (#9844) #101

Workflow file for this run

name: Build Rust documentation
on:
pull_request:
paths:
- polars/**
- .github/workflows/docs-rust.yml
push:
branches:
- main
paths:
- polars/**
- .github/workflows/docs-rust.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build-rust-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
run: rustup component add rust-docs
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'main' }}
- name: Build Rust documentation
env:
RUSTDOCFLAGS: --cfg docsrs -D warnings
run: cargo doc --features=docs-selection --package polars
- name: Create redirect to Polars crate and set no-jekyll
if: ${{ github.ref_name == 'main' }}
run: |
echo '<meta http-equiv=refresh content=0;url=polars/index.html>' > target/doc/index.html
touch target/doc/.nojekyll
- name: Deploy Rust docs
if: ${{ github.ref_name == 'main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/doc
clean-exclude: py-polars/**
# Make sure documentation artifacts are not cached
- name: Clean up documentation artifacts
if: ${{ github.ref_name == 'main' }}
run: rm -rf target/doc