mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 11:39:35 +00:00
Have CI build with doc_auto_cfg
This commit is contained in:
parent
fb3fadb3d3
commit
bbe014c3a7
1 changed files with 8 additions and 4 deletions
12
.github/workflows/pages.yml
vendored
12
.github/workflows/pages.yml
vendored
|
@ -27,8 +27,6 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "develop"
|
||||
paths:
|
||||
- "docs/**"
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
|
@ -65,11 +63,17 @@ jobs:
|
|||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
||||
env:
|
||||
JEKYLL_ENV: production
|
||||
|
||||
- name: Get nightly version to use
|
||||
id: nightly
|
||||
shell: bash
|
||||
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT
|
||||
- name: Buld Rust docs
|
||||
run: |
|
||||
rustup update stable
|
||||
cargo doc --workspace --no-deps --all-features
|
||||
rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -c doc
|
||||
RUSTDOCFLAGS="--cfg docsrs" cargo +${{ steps.nightly.outputs.version }} doc --workspace --no-deps --all-features
|
||||
mv target/doc docs/_site/rust
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue