File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed
Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 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
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 :
Original file line number Diff line number Diff line change @@ -240,6 +240,10 @@ shell = "uv run ruff format --check && uv run ruff check"
240240[tool .poe .tasks .format ]
241241shell = " 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 ]
244248shell = " ./build_api_reference.sh && corepack enable && yarn && uv run yarn build"
245249cwd = " website"
You can’t perform that action at this time.
0 commit comments