-
Notifications
You must be signed in to change notification settings - Fork 16
34 lines (32 loc) · 1.13 KB
/
example-preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: example-preview
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
upload:
runs-on: [testing]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Deploy to Vercel Action
id: vercel-deploy
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_NIGHTLY_CONNECT_EXAMPLE_PREVIEW }}
VERCEL_SCOPE: ${{ secrets.VERCEL_ORG_ID }}
PRODUCTION: false
CREATE_COMMENT: false
GITHUB_DEPLOYMENT: false
- uses: thollander/actions-comment-pull-request@v1
with:
message: 🤙🤙🤙🤙 EXAMPLE PREVIEW 🤙🤙🤙🤙
<table>
<tr>
<td><strong>✅ Preview:</strong></td>
<td><a href='${{ steps.vercel-deploy.outputs.PREVIEW_URL }}'>${{ steps.vercel-deploy.outputs.PREVIEW_URL }}</a></td>
</tr>
</table>
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}