Skip to content

Commit

Permalink
ci: add vercel deployment to ci to circumvent deployment of organizat…
Browse files Browse the repository at this point in the history
…ion accounts needing paid vercel
  • Loading branch information
kethan1 committed Oct 13, 2024
1 parent d0f88be commit 691dd97
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 523 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/vercel-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy to Vercel on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 }}
24 changes: 24 additions & 0 deletions .github/workflows/vercel-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create Vercel preview URL on pull request
on:
pull_request:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
steps:
- uses: actions/checkout@v4
- 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 }}
Loading

1 comment on commit 691dd97

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for av-gamedev ready!

✅ Preview
https://av-gamedev-1r64k2kyt-amador-valley-web-developments-projects.vercel.app

Built with commit 691dd97.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.