-
Notifications
You must be signed in to change notification settings - Fork 10
24 lines (22 loc) · 1.14 KB
/
deploy-pull-requests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: deploy-pull-requests
on: [pull_request]
concurrency:
group: deploy-pull-requests-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# we need to run a different buildCommand for PR previews (see package.json scripts)
- run: sed -i 's/yarn vercel-build/yarn vercel-preview-build/' vercel.json
shell: bash
- uses: amondnet/vercel-action@master
id: vercel-deploy # identifier to reference this step
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # needed to allow comments on prs
vercel-token: ${{ secrets.VERCEL_TOKEN }} # required
vercel-org-id: ${{ secrets.MISTICA_WEB_VERCEL_ORG_ID}} # required
vercel-project-id: ${{ secrets.MISTICA_WEB_VERCEL_PROJECT_ID}} # required
vercel-project-name: mistica-web # not required by the docs, but the action fails if not specified. See https://github.com/amondnet/vercel-action/issues/30#issuecomment-678608424
working-directory: ./