Skip to content
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

GHA - Replace Vercel bash deploy script by "deploy-on-vercel" github action #296

Merged

Conversation

Demmonius
Copy link
Collaborator

@Demmonius Demmonius commented Feb 23, 2021

Reduce the complexity of the Vercel deployment script (GitHub Actions) by using a dedicated action instead of the existing bash script.

Makes the code much more readable, remove code duplication (x3) in various actions.

@github-actions github-actions bot temporarily deployed to customer1-staging February 23, 2021 14:53 Inactive
@github-actions
Copy link

✅  Deployment SUCCESS
Commit d6e28ee successfully deployed to
Deployment aliased as

@github-actions
Copy link

✅  E2E tests SUCCESS for commit d6e28ee previously deployed at https://nrn-v2-mst-aptd-at-lcz-sty-c1-le9gfznxk-unly-oss.vercel.app

VERCEL_DEPLOYMENT_DOMAIN=${{ env.VERCEL_DEPLOYMENT_DOMAIN }}
VERCEL_DEPLOYMENT_URL=${{ format('https://{0}', env.VERCEL_DEPLOYMENT_DOMAIN) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the VERCEL_DEPLOYMENT_URL and VERCEL_DEPLOYMENT_DOMAIN both be returned by the Action?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That'd avoid doing the above which isn't dev-friendly

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I agree

package.json Outdated
"deploy:ci:gha": "yarn vercel:cleanup && yarn vercel:deploy --local-config=vercel.${CUSTOMER_REF}.staging.json",
"deploy:ci:gha:production": "yarn vercel:cleanup && yarn vercel:deploy --local-config=vercel.${CUSTOMER_REF}.production.json --prod",
"deploy:ci:gha": "yarn vercel:deploy --local-config=vercel.${CUSTOMER_REF}.staging.json",
"deploy:ci:gha:production": "CUSTOMER_REF=${CUSTOMER_REF} yarn vercel:deploy --local-config=vercel.${CUSTOMER_REF}.production.json --prod",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why CUSTOMER_REF=${CUSTOMER_REF} ? Doesn't seem necessary, and it's confusing because the above command doesn't define it.

Copy link
Collaborator Author

@Demmonius Demmonius Feb 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mistake, I removed it from staging but not production

@github-actions
Copy link

✅  Deployment SUCCESS
Commit fc46206 successfully deployed Storybook static site to https://nrn-v2-mst-aptd-at-lcz-sty-storybook-p5o6y2e1z-unly-oss.vercel.app
Deployment aliased as nrn-v2-mst-aptd-at-lcz-sty-storybook

@github-actions
Copy link

✅  E2E tests SUCCESS for commit fc46206 previously deployed at https://nrn-v2-mst-aptd-at-lcz-sty-c1-7u1iwwx5h-unly-oss.vercel.app

@github-actions
Copy link

✅  E2E tests SUCCESS for commit fc46206 previously deployed Storybook static site at https://nrn-v2-mst-aptd-at-lcz-sty-storybook-p5o6y2e1z-unly-oss.vercel.app

.github/workflows/deploy-vercel-production.yml Outdated Show resolved Hide resolved
.github/workflows/deploy-vercel-production.yml Outdated Show resolved Hide resolved
.github/workflows/deploy-vercel-staging.yml Outdated Show resolved Hide resolved
.github/workflows/deploy-vercel-storybook.yml Outdated Show resolved Hide resolved
@Vadorequest Vadorequest changed the title Implement own vercel deploy action GHA - Replace Vercel bash deploy script by "deploy-on-vercel" github action Mar 3, 2021
@github-actions github-actions bot temporarily deployed to customer1-staging May 4, 2021 09:21 Inactive
@github-actions
Copy link

github-actions bot commented May 4, 2021

✅  Deployment SUCCESS
Commit ebc9339 successfully deployed to https://nrn-v2-mst-aptd-at-lcz-sty-c1-c1kchq71l-unly-oss.vercel.app
Deployment aliased as

@github-actions
Copy link

github-actions bot commented May 4, 2021

✅  E2E tests SUCCESS for commit ebc9339 previously deployed at https://nrn-v2-mst-aptd-at-lcz-sty-c1-c1kchq71l-unly-oss.vercel.app

…c24a6429fdd257598df2017 (v1.0.0) instead of latest
@github-actions github-actions bot temporarily deployed to customer1-staging May 8, 2021 11:58 Inactive
@github-actions github-actions bot temporarily deployed to storybook May 8, 2021 11:58 Inactive
@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  Deployment SUCCESS
Commit 145a048 successfully deployed to https://nrn-v2-mst-aptd-at-lcz-sty-c1-36djmkawr-unly-oss.vercel.app
Deployment aliased as

@github-actions github-actions bot temporarily deployed to storybook May 8, 2021 12:07 Inactive
@github-actions github-actions bot temporarily deployed to customer1-staging May 8, 2021 12:07 Inactive
@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  Deployment SUCCESS
Commit 145a048 successfully deployed Storybook static site to https://nrn-v2-mst-aptd-at-lcz-sty-storybook-cgqfx5fhx-unly-oss.vercel.app
Deployment aliased as nrn-v2-mst-aptd-at-lcz-sty-storybook

@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  E2E tests SUCCESS for commit 145a048 previously deployed Storybook static site at https://nrn-v2-mst-aptd-at-lcz-sty-storybook-cgqfx5fhx-unly-oss.vercel.app

@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  E2E tests SUCCESS for commit 145a048 previously deployed at https://nrn-v2-mst-aptd-at-lcz-sty-c1-36djmkawr-unly-oss.vercel.app

@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  Deployment SUCCESS
Commit 7cc8a1b successfully deployed to https://nrn-v2-mst-aptd-at-lcz-sty-c1-4ujwkei3y-unly-oss.vercel.app
Deployment aliased as

@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  Deployment SUCCESS
Commit 7cc8a1b successfully deployed Storybook static site to https://nrn-v2-mst-aptd-at-lcz-sty-storybook-1pu42m809-unly-oss.vercel.app
Deployment aliased as nrn-v2-mst-aptd-at-lcz-sty-storybook

@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  E2E tests SUCCESS for commit 7cc8a1b previously deployed Storybook static site at https://nrn-v2-mst-aptd-at-lcz-sty-storybook-1pu42m809-unly-oss.vercel.app

@github-actions
Copy link

github-actions bot commented May 8, 2021

✅  E2E tests SUCCESS for commit 7cc8a1b previously deployed at https://nrn-v2-mst-aptd-at-lcz-sty-c1-4ujwkei3y-unly-oss.vercel.app

@Vadorequest Vadorequest marked this pull request as ready for review May 8, 2021 12:30
@Vadorequest Vadorequest merged commit 3ec63ac into v2-mst-aptd-at-lcz-sty May 8, 2021
@Vadorequest Vadorequest deleted the implement-own-vercel-deploy-action branch May 8, 2021 12:30
Vadorequest added a commit that referenced this pull request May 8, 2021
Vadorequest added a commit that referenced this pull request May 13, 2021
Vadorequest added a commit that referenced this pull request May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants