mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 10:40:01 +00:00
Compare commits
1 Commits
c35926fc27
...
9f96d280de
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9f96d280de |
23
.github/workflows/docs-and-testcov.yml
vendored
23
.github/workflows/docs-and-testcov.yml
vendored
@ -44,14 +44,6 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Replace logo URL in README.md
|
|
||||||
env:
|
|
||||||
LOGO_URL: ${{ secrets.LOGO_URL }}
|
|
||||||
run: |
|
|
||||||
# replace with EXAMPLE.COM/LOGO
|
|
||||||
|
|
||||||
sed -i 's|.github/rustframe_logo.png|rustframe_logo.png|g' README.md
|
|
||||||
|
|
||||||
- name: Build documentation
|
- name: Build documentation
|
||||||
run: cargo doc --no-deps --release
|
run: cargo doc --no-deps --release
|
||||||
|
|
||||||
@ -104,25 +96,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# mkdir docs
|
# mkdir docs
|
||||||
mkdir -p target/doc/docs
|
mkdir -p target/doc/docs
|
||||||
mv target/doc/rustframe/* target/doc/docs/
|
cp -r target/doc/rustframe/* target/doc/docs/
|
||||||
|
|
||||||
mkdir output
|
mkdir output
|
||||||
cp tarpaulin-report.html target/doc/docs/
|
cp tarpaulin-report.html target/doc/docs/
|
||||||
cp tarpaulin-report.json target/doc/docs/
|
cp tarpaulin-report.json target/doc/docs/
|
||||||
cp tarpaulin-badge.json target/doc/docs/
|
cp tarpaulin-badge.json target/doc/docs/
|
||||||
cp last-commit-date.json target/doc/docs/
|
cp last-commit-date.json target/doc/docs/
|
||||||
# cp -r .github target/doc/docs
|
mkdir -p target/doc/.github
|
||||||
cp .github/rustframe_logo.png target/doc/docs/
|
cp .github/rustframe_logo.png target/doc/.github/rustframe_logo.png
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=docs\">" > target/doc/index.html
|
echo "<meta http-equiv=\"refresh\" content=\"0; url=docs\">" > target/doc/index.html
|
||||||
touch target/doc/.nojekyll
|
|
||||||
|
|
||||||
# verify that logo exists in the output directory
|
|
||||||
- name: Verify logo directory
|
|
||||||
run: |
|
|
||||||
if [ ! -f target/doc/docs/rustframe_logo.png ]; then
|
|
||||||
echo "Logo not found in output directory!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Upload Pages artifact
|
- name: Upload Pages artifact
|
||||||
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user