File tree 1 file changed +11
-19
lines changed
1 file changed +11
-19
lines changed Original file line number Diff line number Diff line change 1
- name : Vercel Preview Deployment
1
+ name : Preview Deployment
2
2
3
3
on :
4
4
push :
16
16
runs-on : ubuntu-latest
17
17
env :
18
18
REPO_ACCESS_TOKEN : ${{ secrets.REPO_ACCESS_TOKEN }}
19
- VERCEL_TOKEN : ${{ secrets.VERCEL_TOKEN }}
20
- VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID}}
21
- VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID}}
22
19
APP_ENV : prod
23
20
24
21
steps :
@@ -62,19 +59,14 @@ jobs:
62
59
- run : npm install
63
60
- run : npm run build
64
61
65
- - name : Install Vercel CLI
66
- run : npm install --global vercel@canary
67
- - name : Pull Vercel Environment Information
68
- run : vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
69
- - name : Build Project Artifacts
70
- run : vercel build --token=${{ secrets.VERCEL_TOKEN }}
62
+ - name : Install Netlify
63
+ run :
npm install [email protected] -g
71
64
72
- - uses : UnlyEd/github-action-deploy-on-vercel@latest
73
- with :
74
- command : " vercel deploy --archive=tgz --prebuilt --debug --token ${{ secrets.VERCEL_TOKEN }}"
75
- env :
76
- VERCEL_TOKEN : ${{ secrets.VERCEL_TOKEN }}
77
- VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID}}
78
- VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
79
-
80
- - run : " echo \" Found deployment url: ${{ env.VERCEL_DEPLOYMENT_URL }}\" "
65
+ - name : Deploy to Netlify
66
+ id : netlify_deploy
67
+ run : |
68
+ netlify deploy \
69
+ --dir public \
70
+ --site ${{ secrets.NETLIFY_SITE_ID }} \
71
+ --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
72
+ --json
You can’t perform that action at this time.
0 commit comments