-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix playroom deployment #4605
Fix playroom deployment #4605
Conversation
Avoid building and deploying on dry-run Get correct version tag for URL construction
Storybook staging is available at https://kiwicom-orbit-dsil-fix-playroom-deployment.surge.sh Playroom staging is available at https://kiwicom-orbit-dsil-fix-playroom-deployment.surge.sh/playroom |
Size Change: -3 B (0%) Total Size: 459 kB
ℹ️ View Unchanged
|
Deploying orbit with Cloudflare Pages
|
- name: Build Playroom | ||
if: ${{ github.event.inputs.dryrun == 'false' }} | ||
run: yarn components build:playroom | ||
|
||
- name: Build Storybook | ||
if: ${{ github.event.inputs.dryrun == 'false' }} | ||
run: yarn components build:storybook | ||
|
||
- name: Get tag version | ||
if: ${{ github.event.inputs.dryrun == 'false' }} | ||
run: | | ||
git fetch --tags --quiet | ||
echo "VERSION_TAG=$(git tag --list '@kiwicom/orbit-components@*' --sort=creatordate | sed '$!d' | sed -n '$ s|.*@||; s/\./-/gp')" >> $GITHUB_ENV | ||
|
||
- name: Get Storybook domain | ||
run: | | ||
echo "DOMAIN=https://kiwicom-orbit-v${VERSION_TAG}.surge.sh" >> $GITHUB_ENV | ||
yarn components deploy:surge ${DOMAIN} --token ${{ secrets.SURGE_TOKEN }} | ||
- name: Publish Storybook and Playroom | ||
if: ${{ github.event.inputs.dryrun == 'false' }} | ||
run: yarn components deploy:surge https://kiwicom-orbit-v${VERSION_TAG}.surge.sh --token ${{ secrets.SURGE_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking that we might want to merge all these steps into one. I'm not sure if there are advantages to keeping them split.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good point. I would prefer to touch the minimum now until we got this finally working. It has been two releases already with failed deployments 😞
This PR addresses 3 issues:
FEPLT-2238
✨
Description by Callstackai
This PR fixes issues related to the deployment of Playroom, including preventing deployment during dry runs, correcting the URL generation for Playroom, and ensuring the correct link is published in Slack.
Diagrams of code changes
Files Changed
This PR includes files in programming languages that we currently do not support. We have not reviewed files with the extensions
.yml
,.mjs
. See list of supported languages.