Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/actions/deploy-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ inputs:
runs:
using: 'composite'
steps:
# docs/vite.config.ts uses the task cache format of this release. Once a
# release requires task cache settings under `cache`, remove this pin and
# the one in build-docs-fork-preview.yml, and update docs/vite.config.ts.
- uses: voidzero-dev/setup-vp@3754dd7dbdb32bd8f6d28b6043de13ad3a75f21f # v1.21.1
with:
version: 1.0.0-rc.0
cache: true
working-directory: docs
cache-dependency-path: docs/pnpm-lock.yaml
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-docs-fork-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ jobs:
# Build the same commit that workflow_run.head_sha identifies.
ref: ${{ github.event.pull_request.head.sha }}

# Keep in sync with the pin in .github/actions/deploy-docs/action.yml.
- uses: voidzero-dev/setup-vp@3754dd7dbdb32bd8f6d28b6043de13ad3a75f21f # v1.21.1
with:
version: 1.0.0-rc.0
working-directory: docs
cache: false

Expand Down
26 changes: 13 additions & 13 deletions docs/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
export default {
run: {
tasks: {
// Docs builds pin `vp` in .github/actions/deploy-docs/action.yml. Keep the
// cache settings at the top level until that pin requires them under `cache`.
'build:site': {
command: 'vitepress build',
// The docs and installer URLs depend on the explicit origin or Workers
// branch, so different deploy targets must not share cached output.
env: ['DOCS_SITE_ORIGIN', 'WORKERS_CI', 'WORKERS_CI_BRANCH'],
input: [
{ auto: true },
'!.vitepress/.temp/**',
'!.vitepress/dist/**',
'!node_modules',
'!node_modules/.vite-temp/**',
],
output: ['.vitepress/dist/**'],
cache: {
// The docs and installer URLs depend on the explicit origin or Workers
// branch, so different deploy targets must not share cached output.
env: ['DOCS_SITE_ORIGIN', 'WORKERS_CI', 'WORKERS_CI_BRANCH'],
input: [
{ auto: true },
'!.vitepress/.temp/**',
'!.vitepress/dist/**',
'!node_modules',
'!node_modules/.vite-temp/**',
],
output: ['.vitepress/dist/**'],
},
},
},
},
Expand Down
Loading