Skip to content

Commit 9d368fb

Browse files
committed
Fix python docs
1 parent 9f9e426 commit 9d368fb

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/deploy-python-docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ jobs:
3434
environment:
3535
name: github-pages
3636
url: https://humemai.github.io/arcadedb/
37-
defaults:
38-
run:
39-
working-directory: bindings/python
4037

4138
steps:
4239
- name: Check if this is a Python release
@@ -69,17 +66,21 @@ jobs:
6966
token: ${{ secrets.GITHUB_TOKEN }}
7067

7168
- name: Set up Python
69+
if: github.event_name != 'release' || steps.check-python-release.outputs.is-python-release == 'true'
7270
uses: actions/setup-python@v5
7371
with:
7472
python-version: '3.11'
7573
cache: 'pip'
7674

7775
- name: Install dependencies
76+
if: github.event_name != 'release' || steps.check-python-release.outputs.is-python-release == 'true'
77+
working-directory: bindings/python
7878
run: |
7979
pip install --upgrade pip
8080
pip install mkdocs-material mkdocs-git-revision-date-localized-plugin mike
8181
8282
- name: Configure Git
83+
if: github.event_name != 'release' || steps.check-python-release.outputs.is-python-release == 'true'
8384
run: |
8485
git config user.name "github-actions[bot]"
8586
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -113,6 +114,7 @@ jobs:
113114
114115
- name: Deploy with mike (set as latest)
115116
if: (github.event_name != 'release' || steps.check-python-release.outputs.is-python-release == 'true') && steps.version.outputs.set_latest == 'true'
117+
working-directory: bindings/python
116118
run: |
117119
mike deploy --push --update-aliases \
118120
${{ steps.version.outputs.version }} latest \
@@ -121,6 +123,7 @@ jobs:
121123
122124
- name: Deploy with mike (not latest)
123125
if: (github.event_name != 'release' || steps.check-python-release.outputs.is-python-release == 'true') && steps.version.outputs.set_latest != 'true'
126+
working-directory: bindings/python
124127
run: |
125128
mike deploy --push \
126129
${{ steps.version.outputs.version }} \

0 commit comments

Comments
 (0)