Skip to content

Commit 91af5a8

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

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

.github/workflows/prerelease.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
permissions:
1212
pull-requests: write
1313
issues: write
14+
contents: write
15+
deployments: write
1416

1517
jobs:
1618
deploy:
@@ -59,19 +61,29 @@ jobs:
5961
- name: Setup Tools
6062
if: steps.should_deploy.outputs.should_deploy == 'true'
6163
uses: ./.github/actions/setup
62-
- name: Deploy to Vercel (${{ matrix.locale }})
64+
- name: Deploy to Vercel Action
6365
if: steps.should_deploy.outputs.should_deploy == 'true'
64-
id: deploy
65-
uses: ./.github/actions/vercel-deploy
66+
uses: BetaHuhn/deploy-to-vercel-action@v1.10.0
6667
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 }}
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
70+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
71+
VERCEL_PROJECT_ID: ${{ secrets[matrix.secret_project_id] }}
72+
# PR_PREVIEW_DOMAIN: "${{ matrix.locale }}.{PR}.nextjs.im"
73+
74+
# - name: Deploy to Vercel (${{ matrix.locale }})
75+
# if: steps.should_deploy.outputs.should_deploy == 'true'
76+
# id: deploy
77+
# uses: ./.github/actions/vercel-deploy
78+
# with:
79+
# environment: preview
80+
# vercel_project_id: ${{ secrets[matrix.secret_project_id] }}
81+
# vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
82+
# vercel_token: ${{ secrets.VERCEL_TOKEN }}
83+
# - name: Comment PR with Vercel Preview Links (${{ matrix.locale }})
84+
# if: steps.should_deploy.outputs.should_deploy == 'true'
85+
# uses: ./.github/actions/comment-vercel-preview
86+
# with:
87+
# inspect_url: ${{ steps.deploy.outputs.inspect_url }}
88+
# preview_url: ${{ steps.deploy.outputs.prod_url }}
89+
# label: ${{ matrix.locale }}

0 commit comments

Comments
 (0)