gh-pages: don't publish whole target directory
This commit is contained in:
parent
c698067da4
commit
1c02533641
3
.github/workflows/gh-pages.yml
vendored
3
.github/workflows/gh-pages.yml
vendored
|
@ -54,9 +54,8 @@ jobs:
|
|||
- name: Build the doc
|
||||
run: |
|
||||
cargo xtask doc
|
||||
mv target/doc target/guide/doc
|
||||
echo "<meta http-equiv=refresh content=0;url=pyo3/index.html>" > target/guide/doc/index.html
|
||||
env:
|
||||
CARGO_TARGET_DIR: target/guide
|
||||
|
||||
- name: Deploy docs and the guide
|
||||
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
|
||||
|
|
Loading…
Reference in a new issue