Skip to content

Commit 583a244

Browse files
committed
2 parents 33eece0 + 6106b12 commit 583a244

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/netlify.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to Netlify
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Change to your branch name if needed
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Install Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
21+
- name: Install dependencies
22+
run: npm install # Change if using yarn/pnpm
23+
24+
- name: Build Project
25+
run: npm run build # Change if using a different build command
26+
27+
- name: Deploy to Netlify
28+
uses: nwtgck/actions-netlify@v2
29+
with:
30+
publish-dir: ./dist # Change if your build output is different (e.g., build/)
31+
production-branch: main
32+
deploy-message: "Deployed via GitHub Actions"
33+
enable-pull-request-comment: false
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
36+
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Feel free to reach out to me:
114114

115115
- Email: amos.babu@yahoo.com
116116
- LinkedIn: [Amos Babu](https://www.linkedin.com/in/amos-babu-275597202/)
117-
- My Portfolio: [Amos Babu](https://amos-babu.netlify.app)
117+
- My Portfolio: [Amos Babu](https://amosbabu.netlify.app)
118118

119119
---
120120

0 commit comments

Comments
 (0)