-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b82121
commit 5e06baf
Showing
3 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
if: github.ref == 'refs/heads/trunk' | ||
with: | ||
token: ${{ secrets.WEB_DEPLOY }} | ||
folder: target/doc | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: Publish | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/publish.yml' | ||
push: | ||
branches: | ||
- trunk | ||
|