This is an automated email from the ASF dual-hosted git repository.
gansheer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/main by this push:
new 727deee9 fix: add --no-build to netlify deploy to skip unwanted build
727deee9 is described below
commit 727deee9df304b753129504b6c9c0665c4ab8d39
Author: Gaelle Fournier <[email protected]>
AuthorDate: Fri Aug 7 19:36:22 2026 +0200
fix: add --no-build to netlify deploy to skip unwanted build
The netlify.toml build command (yarn build-all) was being triggered
by netlify deploy, failing after workspaces were stripped. The public
directory is already pre-built by the PR checks workflow.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
.github/workflows/preview.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml
index 1123b992..07b09c5d 100644
--- a/.github/workflows/preview.yaml
+++ b/.github/workflows/preview.yaml
@@ -64,7 +64,7 @@ jobs:
PR_URL="https://github.com/apache/camel-website/pull/${PR_NUMBER}"
yarn install
node -e "const
fs=require('fs'),p=JSON.parse(fs.readFileSync('package.json','utf8'));delete
p.workspaces;fs.writeFileSync('package.json',JSON.stringify(p,null,2)+'\n')"
- DEPLOY_OUTPUT=$(./node_modules/.bin/netlify deploy --dir public
--site "$NETLIFY_SITE_ID" --alias="pr-${PR_NUMBER}" --message="Preview for
${PR_URL}" --json)
+ DEPLOY_OUTPUT=$(./node_modules/.bin/netlify deploy --no-build --dir
public --site "$NETLIFY_SITE_ID" --alias="pr-${PR_NUMBER}" --message="Preview
for ${PR_URL}" --json)
echo "Deploy output: $DEPLOY_OUTPUT"
DEPLOY_URL=$(echo "$DEPLOY_OUTPUT" | jq -r '.deploy_ssl_url //
.deploy_url // .url // empty')
echo "DEPLOY_URL=${DEPLOY_URL}" >> $GITHUB_ENV