mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
refactor: reorganize documentation build steps and update output directory structure
This commit is contained in:
parent
69b240f7a8
commit
bbc401225b
20
.github/workflows/docs-and-testcov.yml
vendored
20
.github/workflows/docs-and-testcov.yml
vendored
@ -24,6 +24,15 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
|
|
||||||
|
- name: Build documentation
|
||||||
|
run: cargo doc --no-deps
|
||||||
|
|
||||||
|
- name: Prepare documentation for Pages
|
||||||
|
run: |
|
||||||
|
mkdir -p docs
|
||||||
|
cp -r target/doc/* docs/
|
||||||
|
|
||||||
- name: Install Cargo binstall
|
- name: Install Cargo binstall
|
||||||
uses: cargo-bins/cargo-binstall@main
|
uses: cargo-bins/cargo-binstall@main
|
||||||
|
|
||||||
@ -36,19 +45,12 @@ jobs:
|
|||||||
cargo tarpaulin --out Html
|
cargo tarpaulin --out Html
|
||||||
mv tarpaulin-report.html testcov/index.html
|
mv tarpaulin-report.html testcov/index.html
|
||||||
|
|
||||||
- name: Build documentation
|
|
||||||
run: cargo doc --no-deps
|
|
||||||
|
|
||||||
- name: Prepare documentation for Pages
|
|
||||||
run: |
|
|
||||||
mkdir -p docs
|
|
||||||
cp -r target/doc/* docs/
|
|
||||||
|
|
||||||
- name: Copy files to output directory
|
- name: Copy files to output directory
|
||||||
run: |
|
run: |
|
||||||
mkdir output
|
mkdir output
|
||||||
|
mkdir -p output/docs
|
||||||
cp -r testcov output/
|
cp -r testcov output/
|
||||||
cp -r docs/rustframe output/
|
cp -r docs/rustframe output/docs/
|
||||||
|
|
||||||
- name: Upload Pages artifact
|
- name: Upload Pages artifact
|
||||||
# if: github.event_name == 'push'
|
# if: github.event_name == 'push'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user