Skip to content

Commit a9d96a2

Browse files
committed
Update according to client
1 parent 5ddcb9f commit a9d96a2

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

.github/workflows/_release_docs.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,6 @@ jobs:
3838
uses: actions/setup-node@v6
3939
with:
4040
node-version: ${{ env.NODE_VERSION }}
41-
cache: yarn
42-
cache-dependency-path: website/yarn.lock
43-
44-
- name: Install Node dependencies
45-
run: |
46-
yarn install
47-
yarn upgrade @apify/docs-theme
48-
working-directory: ./website
49-
50-
# We do this as early as possible to prevent conflicts if someone else would push something in the meantime
51-
- name: Commit the updated package.json and lockfile
52-
run: |
53-
git config user.name 'GitHub Actions'
54-
git config user.email 'github-actions[bot]@users.noreply.github.com'
55-
git add website/package.json
56-
git add website/yarn.lock
57-
git diff-index --quiet HEAD || git commit -m 'chore: Automatic docs theme update [skip ci]' || true
58-
git push
5941

6042
- name: Set up Python
6143
uses: actions/setup-python@v6
@@ -70,6 +52,18 @@ jobs:
7052
- name: Install Python dependencies
7153
run: uv run poe install-dev
7254

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

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ shell = "uv run ruff format --check && uv run ruff check"
240240
[tool.poe.tasks.format]
241241
shell = "uv run ruff check --fix && uv run ruff format"
242242

243+
[tool.poe.tasks.update-docs-theme]
244+
shell = "corepack enable && yarn up @apify/docs-theme"
245+
cwd = "website"
246+
243247
[tool.poe.tasks.build-docs]
244248
shell = "./build_api_reference.sh && corepack enable && yarn && uv run yarn build"
245249
cwd = "website"

0 commit comments

Comments
 (0)