Skip to content

Commit 31587fc

Browse files
committed
fix: path resolution
1 parent 2444f34 commit 31587fc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ jobs:
5252
- name: Generate documentation
5353
run: |
5454
mkdir -p docs
55-
cp tools/gendocs.py /tmp/gendocs.py
5655
for tag in ${{ steps.versions.outputs.tags }}; do
5756
echo "=== Generating docs for $tag ==="
5857
git checkout "$tag" -- src/cyaml.h README.md refs/ypath/spec.md 2>/dev/null || true
59-
uv run --with markdown python3 /tmp/gendocs.py "$tag"
60-
git checkout HEAD -- src/cyaml.h README.md refs/ypath/spec.md 2>/dev/null || true
58+
git stash push -m "gendocs" -- tools/gendocs.py 2>/dev/null || true
59+
git checkout HEAD -- tools/gendocs.py
60+
uv run --with markdown python3 tools/gendocs.py "$tag"
61+
git checkout "$tag" -- src/cyaml.h README.md refs/ypath/spec.md 2>/dev/null || true
6162
done
6263
6364
- name: Push to site branch

0 commit comments

Comments
 (0)