diff --git a/.github/workflows/docs-and-testcov.yml b/.github/workflows/docs-and-testcov.yml index 4f81af7..b536aae 100644 --- a/.github/workflows/docs-and-testcov.yml +++ b/.github/workflows/docs-and-testcov.yml @@ -6,7 +6,7 @@ concurrency: on: push: - branches: [main] + branches: [main, fix_docs] # pull_request: # branches: [main] workflow_dispatch: @@ -96,17 +96,24 @@ jobs: run: | # mkdir docs mkdir -p target/doc/docs - cp -r target/doc/rustframe/* target/doc/docs/ + mv target/doc/rustframe/* target/doc/docs/ mkdir output cp tarpaulin-report.html target/doc/docs/ cp tarpaulin-report.json target/doc/docs/ cp tarpaulin-badge.json target/doc/docs/ cp last-commit-date.json target/doc/docs/ - mkdir -p target/doc/.github - cp .github/rustframe_logo.png target/doc/.github/rustframe_logo.png + cp -r .github target/doc/docs/.github echo "" > target/doc/index.html + # verify that .github exists in the output directory + - name: Verify .github directory + run: | + if [ ! -d target/doc/docs/.github ]; then + echo ".github directory not found in output!" + exit 1 + fi + - name: Upload Pages artifact # if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' uses: actions/upload-pages-artifact@v3 @@ -115,4 +122,4 @@ jobs: - name: Deploy to GitHub Pages # if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4