gdscsmit.github.io
gdscsmit.github.io copied to clipboard
test: #76 Automate Preview Deployment and Comment Deployment URL on PRs
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
Please lemme know about the setup you're planning.
The workflow is:
- New
PRopens - Build and deploy a preview of the changes
- PR is
Merged - Build and deploy to the production
For the action to work, in the GitHub repository, go to "Settings" > "Secrets" > "New repository secret", and add the environment secret as mentioned.