Skip to content

Commit cd2b9dd

Browse files
iamjr15claude
andcommitted
fix: use Netlify CLI for deployment instead of third-party action
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent e9ef501 commit cd2b9dd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ jobs:
2626
- name: Build package
2727
run: npm run build
2828

29+
- name: Install Netlify CLI
30+
run: npm install -g netlify-cli
31+
2932
- name: Deploy to Netlify
30-
uses: nwtgck/actions-netlify@v3
31-
with:
32-
publish-dir: '.'
33-
production-deploy: true
34-
github-token: ${{ secrets.GITHUB_TOKEN }}
35-
deploy-message: 'Deploy from GitHub Actions - ${{ github.sha }}'
36-
functions-dir: 'netlify/functions'
33+
run: netlify deploy --prod --dir=. --functions=netlify/functions --message="Deploy from GitHub Actions - ${{ github.sha }}"
3734
env:
3835
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
3936
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)