Skip to content

Commit 5c12896

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

File tree

1 file changed

+38
-25
lines changed

1 file changed

+38
-25
lines changed

.github/workflows/prerelease.yml

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,44 @@ jobs:
4747
SHOULD_DEPLOY=true
4848
fi
4949
echo "should_deploy=$SHOULD_DEPLOY" >> $GITHUB_OUTPUT
50-
- name: Checkout code
50+
- name: Checkout
5151
if: steps.should_deploy.outputs.should_deploy == 'true'
52-
uses: actions/checkout@v3
53-
with:
54-
fetch-depth: 1
55-
ref: ${{ github.head_ref }}
56-
- name: Log checked out commit
57-
if: steps.should_deploy.outputs.should_deploy == 'true'
58-
run: git log -1
59-
- name: Setup Tools
60-
if: steps.should_deploy.outputs.should_deploy == 'true'
61-
uses: ./.github/actions/setup
62-
- name: Deploy to Vercel (${{ matrix.locale }})
52+
uses: actions/checkout@v2
53+
# - name: Checkout code
54+
# if: steps.should_deploy.outputs.should_deploy == 'true'
55+
# uses: actions/checkout@v3
56+
# with:
57+
# fetch-depth: 1
58+
# ref: ${{ github.head_ref }}
59+
# - name: Log checked out commit
60+
# if: steps.should_deploy.outputs.should_deploy == 'true'
61+
# run: git log -1
62+
# - name: Setup Tools
63+
# if: steps.should_deploy.outputs.should_deploy == 'true'
64+
# uses: ./.github/actions/setup
65+
- name: Deploy to Vercel Action
6366
if: steps.should_deploy.outputs.should_deploy == 'true'
64-
id: deploy
65-
uses: ./.github/actions/vercel-deploy
67+
uses: BetaHuhn/deploy-to-vercel-action@v1.10.0
6668
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 }}
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
71+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
72+
VERCEL_PROJECT_ID: ${{ secrets[matrix.secret_project_id] }}
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)