Skip to content

Commit 5aac510

Browse files
committed
Goodby Vercel! Hello Netlify
1 parent 2ef53eb commit 5aac510

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/vercel-preview.yml renamed to .github/workflows/preview.yml

+13-18
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,17 @@ 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 }}
71-
72-
- uses: UnlyEd/github-action-deploy-on-vercel@latest
62+
- name: Deploy preview to Netlify
63+
uses: nwtgck/[email protected]
7364
with:
74-
command: "vercel deploy --archive=tgz --prebuilt --debug --token ${{ secrets.VERCEL_TOKEN }}"
65+
publish-dir: './public'
66+
github-token: ${{ secrets.GITHUB_TOKEN }}
67+
deploy-message: "Preview Deployment from Github Action"
68+
enable-pull-request-comment: true
69+
enable-commit-comment: false
70+
overwrites-pull-request-comment: true
71+
enable-github-deployment: false
7572
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 }}\""
73+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
74+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
75+
timeout-minutes: 1

0 commit comments

Comments
 (0)