Skip to content

Commit 3270bca

Browse files
committed
tmp v3
1 parent 6df0651 commit 3270bca

File tree

3 files changed

+34
-29
lines changed

3 files changed

+34
-29
lines changed

.github/workflows/_check_docs.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,21 @@ jobs:
2828
cache: yarn
2929
cache-dependency-path: website/yarn.lock
3030

31-
- name: Enable Corepack
32-
run: corepack enable
33-
34-
# Install Node dependencies and update docs theme to the latest version
35-
- name: Install Node dependencies
36-
run: |
37-
yarn install
38-
yarn up @apify/docs-theme
39-
working-directory: ./website
31+
- name: Set up Python
32+
uses: actions/setup-python@v6
33+
with:
34+
python-version: "3.14"
35+
36+
- name: Set up uv package manager
37+
uses: astral-sh/setup-uv@v7
38+
with:
39+
python-version: "3.14"
40+
41+
- name: Install Python dependencies
42+
run: uv run poe install-dev
43+
44+
- name: Update docs theme
45+
run: uv run poe update-docs-theme
46+
47+
- name: Build docs
48+
run: uv run poe build-docs

.github/workflows/_release_docs.yaml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,6 @@ jobs:
4141
cache: yarn
4242
cache-dependency-path: website/yarn.lock
4343

44-
- name: Enable Corepack
45-
run: corepack enable
46-
47-
# Install Node dependencies and update docs theme to the latest version
48-
- name: Install Node dependencies
49-
run: |
50-
yarn install
51-
yarn up @apify/docs-theme
52-
working-directory: ./website
53-
54-
# We do this as early as possible to prevent conflicts if someone else would push something in the meantime
55-
- name: Commit the updated package.json and lockfile
56-
run: |
57-
git config user.name 'GitHub Actions'
58-
git config user.email 'github-actions[bot]@users.noreply.github.com'
59-
git add website/package.json
60-
git add website/yarn.lock
61-
git diff-index --quiet HEAD || git commit -m 'chore: Automatic docs theme update [skip ci]' || true
62-
git push
63-
6444
- name: Set up Python
6545
uses: actions/setup-python@v6
6646
with:
@@ -74,6 +54,18 @@ jobs:
7454
- name: Install Python dependencies
7555
run: uv run poe install-dev
7656

57+
- name: Update docs theme
58+
run: uv run poe update-docs-theme
59+
60+
- name: Commit the updated package.json and lockfile
61+
run: |
62+
git config user.name 'GitHub Actions'
63+
git config user.email 'github-actions[bot]@users.noreply.github.com'
64+
git add website/package.json
65+
git add website/yarn.lock
66+
git diff-index --quiet HEAD || git commit -m 'chore: Automatic docs theme update [skip ci]' || true
67+
git push
68+
7769
- name: Build docs
7870
run: uv run poe build-docs
7971
env:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ shell = "uv run ruff check --fix && uv run ruff format"
208208
shell = "./build_api_reference.sh && corepack enable && yarn && uv run yarn build"
209209
cwd = "website"
210210

211+
[tool.poe.tasks.update-docs-theme]
212+
shell = "corepack enable && yarn up @apify/docs-theme"
213+
cwd = "website"
214+
211215
[tool.poe.tasks.run-docs]
212216
shell = "./build_api_reference.sh && corepack enable && yarn && uv run yarn start"
213217
cwd = "website"

0 commit comments

Comments
 (0)