Skip to content

Commit 85944a7

Browse files
committed
feat: use BetaHuhn/deploy-to-vercel-action
1 parent 5f5afff commit 85944a7

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

.github/workflows/prerelease.yml

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

0 commit comments

Comments
 (0)