diff --git a/.github/workflows/vercel-deploy.yml b/.github/workflows/vercel-deploy.yml new file mode 100644 index 0000000000..c5edf9185a --- /dev/null +++ b/.github/workflows/vercel-deploy.yml @@ -0,0 +1,30 @@ +name: Deploy to Vercel + +on: + pull_request: + push: + branches: [main] + +concurrency: + group: vercel-deploy-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + deployments: write + id-token: write + pull-requests: write + +cache-mode: none + +jobs: + token-assets: + uses: yearn/yearn-gha/.github/workflows/vercel-deploy.yml@17446bfb9e9c7911367379222fa5b7e3fff52fa3 + with: + project: token-assets + identity-id: ${{ github.event_name == 'pull_request' && vars.DOPPLER_PREVIEW_IDENTITY_ID || vars.DOPPLER_PRODUCTION_IDENTITY_ID }} + token-assets-ui: + uses: yearn/yearn-gha/.github/workflows/vercel-deploy.yml@17446bfb9e9c7911367379222fa5b7e3fff52fa3 + with: + project: token-assets-ui + identity-id: ${{ github.event_name == 'pull_request' && vars.DOPPLER_PREVIEW_IDENTITY_ID || vars.DOPPLER_PRODUCTION_IDENTITY_ID }}