File tree Expand file tree Collapse file tree 1 file changed +11
-19
lines changed
Expand file tree Collapse file tree 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
22
33on :
44 push :
1616 runs-on : ubuntu-latest
1717 env :
1818 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}}
2219 APP_ENV : prod
2320
2421 steps :
@@ -62,19 +59,14 @@ jobs:
6259 - run : npm install
6360 - run : npm run build
6461
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 7164
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