gdscsmit.github.io icon indicating copy to clipboard operation
gdscsmit.github.io copied to clipboard

test: #76 Automate Preview Deployment and Comment Deployment URL on PRs

Open sid86-dev opened this issue 2 years ago • 2 comments

To make this action work, add the required values from Vercel as secrets in GitHub:

  • Retrieve your Vercel Access Token
  • Install the Vercel CLI and run vercel login
  • Inside your folder, run vercel link to create a new Vercel project
  • Inside the generated .vercel folder, save the projectId and orgId from the project.json
  • Inside GitHub, add VERCEL_TOKEN, VERCEL_ORG_ID, and VERCEL_PROJECT_ID as secrets

sid86-dev avatar Oct 17 '23 15:10 sid86-dev

Please lemme know about the setup you're planning.

The workflow is:

  1. New PR opens
  2. Build and deploy a preview of the changes
  3. PR is Merged
  4. Build and deploy to the production

sid86-dev avatar Oct 17 '23 18:10 sid86-dev

For the action to work, in the GitHub repository, go to "Settings" > "Secrets" > "New repository secret", and add the environment secret as mentioned.

sid86-dev avatar Oct 21 '23 22:10 sid86-dev