Skip to content

Commit 290e93c

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

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

.github/workflows/prerelease.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
permissions:
1212
pull-requests: write
1313
issues: write
14+
contents: write
1415

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

0 commit comments

Comments
 (0)