Skip to content

Commit c75c0d0

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

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

.github/workflows/prerelease.yml

Lines changed: 27 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,30 @@ 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+
GITHUB_DEPLOYMENT: false
73+
# PR_PREVIEW_DOMAIN: "${{ matrix.locale }}.{PR}.nextjs.im"
74+
75+
# - name: Deploy to Vercel (${{ matrix.locale }})
76+
# if: steps.should_deploy.outputs.should_deploy == 'true'
77+
# id: deploy
78+
# uses: ./.github/actions/vercel-deploy
79+
# with:
80+
# environment: preview
81+
# vercel_project_id: ${{ secrets[matrix.secret_project_id] }}
82+
# vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
83+
# vercel_token: ${{ secrets.VERCEL_TOKEN }}
84+
# - name: Comment PR with Vercel Preview Links (${{ matrix.locale }})
85+
# if: steps.should_deploy.outputs.should_deploy == 'true'
86+
# uses: ./.github/actions/comment-vercel-preview
87+
# with:
88+
# inspect_url: ${{ steps.deploy.outputs.inspect_url }}
89+
# preview_url: ${{ steps.deploy.outputs.prod_url }}
90+
# label: ${{ matrix.locale }}

0 commit comments

Comments
 (0)