Skip to content

Commit 71c6b2e

Browse files
committed
Goodbye Vercel! Hello Netlify
1 parent 805be6c commit 71c6b2e

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

Diff for: .github/workflows/vercel-preview.yml renamed to .github/workflows/preview.yml

+11-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Vercel Preview Deployment
1+
name: Preview Deployment
22

33
on:
44
push:
@@ -16,9 +16,6 @@ jobs:
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

0 commit comments

Comments
 (0)