|
11 | 11 | permissions: |
12 | 12 | pull-requests: write |
13 | 13 | issues: write |
| 14 | + contents: write |
14 | 15 |
|
15 | 16 | jobs: |
16 | 17 | deploy: |
@@ -59,19 +60,29 @@ jobs: |
59 | 60 | - name: Setup Tools |
60 | 61 | if: steps.should_deploy.outputs.should_deploy == 'true' |
61 | 62 | uses: ./.github/actions/setup |
62 | | - - name: Deploy to Vercel (${{ matrix.locale }}) |
| 63 | + - name: Deploy to Vercel Action |
63 | 64 | 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 |
66 | 66 | 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