Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ artifactProvider:
Build:
- '/^sentry-.*$/'
- 'npm-package'
- 'cloudflare'
- 'vercel'
targets:
- name: npm
- name: github
- name: cloudflare
deployType: worker
- name: vercel
projectId: prj_wVkOnIwI3eIQbGD1Gw7qS1MqFFIK
- name: registry
apps:
Comment thread
sentry[bot] marked this conversation as resolved.
'app:sentry':
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -758,15 +758,21 @@ jobs:
# be deployed to production.
- name: Remove sourcemaps from output
run: find apps/cli-docs/dist -name '*.map' -delete
# Package the built site plus its Wrangler config as cloudflare.zip so
# Craft's cloudflare target can deploy the extracted Worker artifact.
# Package the built site using Vercel's Build Output API so Craft's
# release-gated Vercel target can deploy it without rebuilding.
- name: Package Docs
run: cd apps/cli-docs && zip -r "$GITHUB_WORKSPACE/cloudflare.zip" wrangler.jsonc dist
run: |
OUTPUT_DIR="$RUNNER_TEMP/vercel-output"
rm -rf "$OUTPUT_DIR"
mkdir -p "$OUTPUT_DIR/.vercel/output/static"
cp -R apps/cli-docs/dist/. "$OUTPUT_DIR/.vercel/output/static/"
printf '%s\n' '{"version":3}' > "$OUTPUT_DIR/.vercel/output/config.json"
(cd "$OUTPUT_DIR" && zip -qr "$GITHUB_WORKSPACE/vercel.zip" .vercel)
Comment thread
BYK marked this conversation as resolved.
- name: Upload docs artifact
uses: actions/upload-artifact@v7
with:
name: cloudflare
path: cloudflare.zip
name: vercel
path: vercel.zip

ci-status:
name: CI Status
Expand Down
Loading
Loading