Skip to content

Commit

Permalink
fix(ci): deploy examples (#54024)
Browse files Browse the repository at this point in the history
Deploy all examples for each release (canary or stable, but not PRs).

Right now we only have one example that we deploy so we don't need to determine which ones changed.
  • Loading branch information
styfle authored Aug 15, 2023
1 parent 88b8d15 commit 210053b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/deploy-examples.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

CHANGED_EXAMPLES=$(node scripts/run-for-change.js --type deploy-examples --listChangedDirectories)
#CHANGED_EXAMPLES=$(node scripts/run-for-change.js --type deploy-examples --listChangedDirectories)
##### TODO: fix the script above so it can work for stable releases which reach back multiple commits
CHANGED_EXAMPLES="examples/image-component" # always deploy as a workaround

PROD=""
if [ "$DEPLOY_ENVIRONMENT" = "production" ]; then
PROD="--prod"
Expand Down

0 comments on commit 210053b

Please sign in to comment.