Skip to content

Commit caa856f

Browse files
committed
fixup! Goodbye Vercel! Hello Netlify
1 parent d12305f commit caa856f

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/preview.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,14 @@ jobs:
5959
- run: npm install
6060
- run: npm run build
6161

62-
- name: Deploy preview to Netlify
63-
uses: nwtgck/actions-netlify@v3.0
64-
with:
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
72-
env:
73-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
74-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
75-
timeout-minutes: 1
62+
- name: Install Netlify
63+
run: npm install netlify-cli@17.23.2 -g
64+
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)