-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb82055
commit d8b6e23
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Deploy to vercel on merge | ||
on: | ||
push: | ||
branches: | ||
- new | ||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# To set more environment variables on the build, either use Vercel CLI or this: | ||
# - uses: dkershner6/vercel-set-env-action@v1 | ||
# with: | ||
# token: ${{ secrets.VERCEL_TOKEN }} | ||
# projectName: events-app | ||
# envVariableKeys: SOME_VARIABLE | ||
# env: | ||
# SOME_VARIABLE: ${{ secrets.SOME_VARIABLE }} | ||
# TARGET_SOME_VARIABLE: preview,development,production | ||
# TYPE_SSOME_VARIABLE: encrypted | ||
- uses: amondnet/vercel-action@v20 | ||
with: | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-args: '--prod' | ||
vercel-org-id: ${{ secrets.ORG_ID}} | ||
vercel-project-id: ${{ secrets.PROJECT_ID}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Create vercel preview URL on pull request | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: amondnet/vercel-action@v20 | ||
id: vercel-deploy | ||
with: | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
vercel-org-id: ${{ secrets.ORG_ID}} | ||
vercel-project-id: ${{ secrets.PROJECT_ID}} | ||
- name: preview-url | ||
run: | | ||
echo ${{ steps.vercel-deploy.outputs.preview-url }} |
d8b6e23
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.
Deploy preview for iiitvcc ready!
✅ Preview
https://iiitvcc-q695rz8e6-iiitv-coding-clubs-projects.vercel.app
Built with commit d8b6e23.
This pull request is being automatically deployed with vercel-action