Skip to content

Commit

Permalink
Use the commit hash as the version string
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengler committed Dec 30, 2023
1 parent 8045e90 commit 058f8ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
- name: Upgrade cargo/rust
run: rustup update
- name: Build rustdoc
# don't build docs for shadow's tests
run: cd shadow/src && cargo doc --workspace --exclude shadow-tests
run: |
# don't build docs for shadow's tests
(cd shadow/src && cargo doc --workspace --exclude shadow-tests)
# rebuild docs for main shadow crate, but with custom version string (shown at top-left of webpage)
(cd shadow/src/main && RUSTDOCFLAGS="--crate-version \"$(git rev-parse --short HEAD)\"" cargo rustdoc)
- name: Copy rustdoc
run: |
rm -rf pages/docs
Expand Down

0 comments on commit 058f8ac

Please sign in to comment.