mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-21 03:49:59 +00:00
Compare commits
4 Commits
d670ab4a5c
...
1c41d387ef
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1c41d387ef | ||
![]() |
38baf0c648 | ||
![]() |
2e6c4bd6bb | ||
![]() |
6bb1c2a0de |
20
.github/workflows/docs-and-testcov.yml
vendored
20
.github/workflows/docs-and-testcov.yml
vendored
@ -44,6 +44,14 @@ jobs:
|
||||
toolchain: stable
|
||||
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
|
||||
run: cargo doc --no-deps --release
|
||||
|
||||
@ -103,14 +111,16 @@ jobs:
|
||||
cp tarpaulin-report.json target/doc/docs/
|
||||
cp tarpaulin-badge.json target/doc/docs/
|
||||
cp last-commit-date.json target/doc/docs/
|
||||
cp -r .github target/doc/docs/.github
|
||||
# cp -r .github target/doc/docs
|
||||
cp .github/rustframe_logo.png target/doc/docs/
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=docs\">" > target/doc/index.html
|
||||
touch target/doc/.nojekyll
|
||||
|
||||
# verify that .github exists in the output directory
|
||||
- name: Verify .github directory
|
||||
# verify that logo exists in the output directory
|
||||
- name: Verify logo directory
|
||||
run: |
|
||||
if [ ! -d target/doc/docs/.github ]; then
|
||||
echo ".github directory not found in output!"
|
||||
if [ ! -f target/doc/docs/rustframe_logo.png ]; then
|
||||
echo "Logo not found in output directory!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user