@@ -285,45 +285,26 @@ jobs:
285
285
- name : Install toolchain
286
286
uses : dtolnay/rust-toolchain@nightly
287
287
288
- - name : Document public API
289
- run : cargo doc -p time --all-features
288
+ - name : Generate documentation
289
+ run : cargo doc --workspace --all-features --no-deps
290
290
env :
291
- RUSTDOCFLAGS : --cfg __time_03_docs -Zunstable-options --generate-link-to-definition
292
-
293
- - name : Create top-level redirect
294
- run : |
295
- echo "<meta http-equiv='refresh' content='0; url=https://time-rs.github.io/api/time'>" \
296
- > ./target/doc/index.html
297
-
298
- - name : Publish public docs
299
- uses : JamesIves/github-pages-deploy-action@releases/v4
300
- with :
301
- token : ${{ secrets.ACCESS_TOKEN }}
302
- branch : main
303
- folder : target/doc
304
- target-folder : api
305
- repository-name : time-rs/time-rs.github.io
306
- if : github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.master_branch)
307
-
308
- - name : Document internal API
309
- run : cargo doc -p time --all-features --document-private-items
310
- env :
311
- RUSTDOCFLAGS : --cfg __time_03_docs --document-hidden-items -Zunstable-options --generate-link-to-definition
312
-
313
- - name : Create top-level redirect
314
- run : |
315
- echo "<meta http-equiv='refresh' content='0; url=https://time-rs.github.io/internal-api/time'>" \
316
- > ./target/doc/index.html
317
-
318
- - name : Publish internal docs
319
- uses : JamesIves/github-pages-deploy-action@releases/v4
320
- with :
321
- token : ${{ secrets.ACCESS_TOKEN }}
322
- branch : main
323
- folder : target/doc
324
- target-folder : internal-api
325
- repository-name : time-rs/time-rs.github.io
326
- if : github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.master_branch)
291
+ RUSTDOCFLAGS : --cfg __time_03_docs
292
+
293
+ publish-documentation :
294
+ name : Publish docs
295
+ needs :
296
+ - documentation
297
+ - check-targets
298
+ - check-benchmarks
299
+ - test
300
+ - cross-build
301
+ - fmt
302
+ - clippy
303
+ if : github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.master_branch)
304
+ uses : time-rs/time-rs.github.io/.github/workflows/trigger-deploy.yaml@main
305
+ secrets : inherit
306
+ permissions :
307
+ actions : write
327
308
328
309
coverage :
329
310
name : Coverage
0 commit comments