Skip to content

Commit

Permalink
ci: fix docs workflow paths trigger
Browse files Browse the repository at this point in the history
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index d0badd1..798257a 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -2,7 +2,7 @@ name: docs
 on:
   push:
     branches: [main]
-    paths: ['src/**/*.rs', 'Cargo.toml', '.github/workflows/docs.yml']
+    paths: ['crates/**/*.rs', '**/Cargo.toml', '.github/workflows/docs.yml']
   workflow_dispatch:

 permissions:
@@ -22,8 +22,8 @@ jobs:
         run: |
           make build.docs
           # we need an index.html page (cargo doc doesn't create it)
-          # this will just redirect to target/doc/example/index.html
-          echo '<meta http-equiv="refresh" content="0;url=example/index.html">' > target/doc/index.html
+          # this will just redirect to target/doc/imt/index.html
+          echo '<meta http-equiv="refresh" content="0;url=imt/index.html">' > target/doc/index.html
       - uses: actions/upload-pages-artifact@v3
         with:
           path: target/doc
  • Loading branch information
sripwoud committed Jul 12, 2024
1 parent d3e8acc commit 07115fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: docs
on:
push:
branches: [main]
paths: ['src/**/*.rs', 'Cargo.toml', '.github/workflows/docs.yml']
paths: ['crates/**/*.rs', '**/Cargo.toml', '.github/workflows/docs.yml']
workflow_dispatch:

permissions:
Expand All @@ -22,8 +22,8 @@ jobs:
run: |
make build.docs
# we need an index.html page (cargo doc doesn't create it)
# this will just redirect to target/doc/example/index.html
echo '<meta http-equiv="refresh" content="0;url=example/index.html">' > target/doc/index.html
# this will just redirect to target/doc/imt/index.html
echo '<meta http-equiv="refresh" content="0;url=imt/index.html">' > target/doc/index.html
- uses: actions/upload-pages-artifact@v3
with:
path: target/doc
Expand Down

0 comments on commit 07115fc

Please sign in to comment.