File tree 1 file changed +2
-24
lines changed
1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change @@ -2,44 +2,22 @@ name: Vercel Preview Deployment
2
2
env :
3
3
VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
4
4
VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
5
-
6
5
on :
7
6
push :
8
7
branches-ignore :
9
8
- main
10
-
11
9
jobs :
12
10
Deploy-Preview :
13
11
runs-on : ubuntu-20.04
14
12
environment :
15
- name : preview # Environment is linked here
16
-
13
+ name : preview
17
14
steps :
18
15
- uses : actions/checkout@v4
19
-
20
16
- name : Install Vercel CLI
21
17
run : npm install --global vercel@latest
22
-
23
18
- name : Pull Vercel Environment Information
24
19
run : vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
25
-
26
20
- name : Build Project Artifacts
27
21
run : vercel build --token=${{ secrets.VERCEL_TOKEN }}
28
-
29
22
- name : Deploy Project Artifacts to Vercel
30
- run : |
31
- vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > deployment.txt
32
- id : deploy
33
-
34
- - name : Extract Deployment URL
35
- run : |
36
- DEPLOYMENT_URL=$(tail -n 1 deployment.txt)
37
- echo "DEPLOYMENT_URL=$DEPLOYMENT_URL" >> $GITHUB_ENV
38
- id : extract-url
39
-
40
- # Step to set URL for the deployment manually
41
- - name : Update Environment URL
42
- if : success()
43
- run : echo "::set-output name=environment_url::${{ env.DEPLOYMENT_URL }}"
44
- env :
45
- DEPLOYMENT_URL : " https://google.com"
23
+ run : vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
You can’t perform that action at this time.
0 commit comments