Skip to content

Commit 30a340a

Browse files
committed
feat: use BetaHuhn/deploy-to-vercel-action@v1
1 parent 5f5afff commit 30a340a

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

.github/workflows/prerelease.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,28 @@ jobs:
5959
- name: Setup Tools
6060
if: steps.should_deploy.outputs.should_deploy == 'true'
6161
uses: ./.github/actions/setup
62-
- name: Deploy to Vercel (${{ matrix.locale }})
63-
if: steps.should_deploy.outputs.should_deploy == 'true'
64-
id: deploy
65-
uses: ./.github/actions/vercel-deploy
66-
with:
67-
environment: preview
68-
vercel_project_id: ${{ secrets[matrix.secret_project_id] }}
69-
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
70-
vercel_token: ${{ secrets.VERCEL_TOKEN }}
71-
- name: Comment PR with Vercel Preview Links (${{ matrix.locale }})
72-
if: steps.should_deploy.outputs.should_deploy == 'true'
73-
uses: ./.github/actions/comment-vercel-preview
62+
- name: Deploy to Vercel Action
63+
uses: BetaHuhn/deploy-to-vercel-action@v1
7464
with:
75-
inspect_url: ${{ steps.deploy.outputs.inspect_url }}
76-
preview_url: ${{ steps.deploy.outputs.prod_url }}
77-
label: ${{ matrix.locale }}
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
67+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
68+
VERCEL_PROJECT_ID: ${{ secrets[matrix.secret_project_id] }}
69+
PR_PREVIEW_DOMAIN: "${{ matrix.locale }}.{PR}.nextjs.im"
70+
71+
# - name: Deploy to Vercel (${{ matrix.locale }})
72+
# if: steps.should_deploy.outputs.should_deploy == 'true'
73+
# id: deploy
74+
# uses: ./.github/actions/vercel-deploy
75+
# with:
76+
# environment: preview
77+
# vercel_project_id: ${{ secrets[matrix.secret_project_id] }}
78+
# vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
79+
# vercel_token: ${{ secrets.VERCEL_TOKEN }}
80+
# - name: Comment PR with Vercel Preview Links (${{ matrix.locale }})
81+
# if: steps.should_deploy.outputs.should_deploy == 'true'
82+
# uses: ./.github/actions/comment-vercel-preview
83+
# with:
84+
# inspect_url: ${{ steps.deploy.outputs.inspect_url }}
85+
# preview_url: ${{ steps.deploy.outputs.prod_url }}
86+
# label: ${{ matrix.locale }}

0 commit comments

Comments
 (0)