Pin nightly docs version

This commit is contained in:
Connor Fitzgerald authored and Teodor Tanasoaia committed 2024-01-06 09:41:15 +01:00
1 parent 4b82121501
commit 5e06baf80d
3 files changed
+36 -14

No files matched your search

+11 -3
View File
@@ -1,11 +1,18 @@
name: Docs
on:
pull_request:
paths:
- '.github/workflows/docs.yml'
push:
branches:
- trunk
env:
# We need to use nightly for various features
# when building docs.rs style docs.
NIGHTLY_VERSION: nightly-2023-12-17
CARGO_INCREMENTAL: false
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
@@ -20,12 +27,12 @@ jobs:
with:
persist-credentials: false
- name: Install nightly toolchain
run: rustup toolchain install nightly --no-self-update --profile=minimal
- name: Install documentation toolchain
run: rustup toolchain install ${{ env.NIGHTLY_VERSION }} --no-self-update --profile=minimal
- name: Build the docs (nightly)
run: |
cargo +nightly doc --no-deps --lib
cargo +${{ env.NIGHTLY_VERSION }} doc --no-deps --lib
env:
RUSTDOCFLAGS: --cfg docsrs
@@ -35,6 +42,7 @@ jobs:
- name: Deploy the docs
uses: JamesIves/github-pages-deploy-action@v4.5.0
if: github.ref == 'refs/heads/trunk'
with:
token: ${{ secrets.WEB_DEPLOY }}
folder: target/doc