Skip to content

Commit 7b0a353

Browse files
authored
Merge pull request #2020 from dearchap/add_venv_1
Fix: add venv for each action
2 parents 5af31b1 + a9e0a33 commit 7b0a353

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish-docs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,21 @@ jobs:
5050
with:
5151
fetch-depth: 0
5252

53-
- name: Create and activate virtual environment
53+
- name: Create virtual environment
5454
run: |
5555
python -m venv venv
56-
source venv/bin/activate
5756
58-
- run: make ensure-mkdocs
57+
- run: |
58+
source venv/bin/activate
59+
make ensure-mkdocs
5960
env:
6061
FLAGS: --upgrade-pip
6162
6263
- run: make set-mkdocs-remote
6364
env:
6465
MKDOCS_REMOTE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6566

66-
- run: make deploy-mkdocs
67+
- run: |
68+
source venv/bin/activate
69+
make deploy-mkdocs
6770

0 commit comments

Comments
 (0)