Skip to content

Commit d407283

Browse files
authored
Merge pull request #39 from jdhoffa/ci/add-ci-to-deploy-documentation
fix(ci): place index.html at root
2 parents 2010c52 + 0440297 commit d407283

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Build
24-
run: cargo doc --no-deps
24+
run: |
25+
cargo doc --no-deps
26+
# Create an index.html redirect at the root level
27+
echo '<meta http-equiv="refresh" content="0; url=vpp_sim/index.html">' > target/doc/index.html
2528
- name: Setup Pages
2629
uses: actions/configure-pages@v4
2730
- name: Upload docs
2831
uses: actions/upload-artifact@v4
2932
with:
3033
name: github-pages
31-
path: target/doc/vpp_sim
34+
path: target/doc
3235
deploy:
3336
runs-on: ubuntu-latest
3437
needs: build

0 commit comments

Comments
 (0)