Skip to content

Commit 136b7d4

Browse files
committed
Also run gh-pages deploy on release
1 parent 8a89d04 commit 136b7d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/guide.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jobs:
4444
# This adds the docs to gh-pages-build/doc
4545
- name: Build the doc
4646
run: |
47-
cargo +nightly rustdoc --lib --features="macros num-bigint num-complex hashbrown serde multiple-pymethods" -- --cfg docsrs
47+
cargo +nightly rustdoc --lib --no-default-features --features="macros num-bigint num-complex hashbrown serde multiple-pymethods" -- --cfg docsrs
4848
cp -r target/doc gh-pages-build/doc
4949
echo "<meta http-equiv=refresh content=0;url=pyo3/index.html>" > gh-pages-build/doc/index.html
5050
5151
- name: Deploy
52-
if: github.ref == 'refs/heads/main'
52+
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
5353
uses: peaceiris/[email protected]
5454
with:
5555
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)