mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 03:30:01 +00:00
Compare commits
1 Commits
27012efb1f
...
b9c0eed6e1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b9c0eed6e1 |
20
.github/workflows/docs-and-testcov.yml
vendored
20
.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
|
||||||
|
|
||||||
@ -111,16 +103,14 @@ jobs:
|
|||||||
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
|
cp -r .github target/doc/docs/.github
|
||||||
cp .github/rustframe_logo.png target/doc/docs/
|
|
||||||
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
|
# verify that .github exists in the output directory
|
||||||
- name: Verify logo directory
|
- name: Verify .github directory
|
||||||
run: |
|
run: |
|
||||||
if [ ! -f target/doc/docs/rustframe_logo.png ]; then
|
if [ ! -d target/doc/docs/.github ]; then
|
||||||
echo "Logo not found in output directory!"
|
echo ".github directory not found in output!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user