Skip to content

Commit 4bb9192

Browse files
committed
Set up GitHub Actions for deployment
1 parent e616e27 commit 4bb9192

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- website-tailwind # The branch to watch for pushes
6+
- website-tailwind # Or specify your branch here (e.g., website-tailwind)
77

88
jobs:
99
build:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
1515

1616
- name: Set up Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v2
1818
with:
19-
node-version: "16" # or the version you need
19+
node-version: "16" # Make sure this matches your local environment
2020

2121
- name: Install dependencies
2222
run: npm install
@@ -25,9 +25,8 @@ jobs:
2525
run: npm run build
2626

2727
- name: Deploy to GitHub Pages
28+
if: success()
2829
uses: peaceiris/actions-gh-pages@v3
2930
with:
3031
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_branch: gh-pages # Ensure this is the branch where your site is hosted
32-
publish_dir: ./dist # Vite outputs to `dist` by default
33-
cname: "https://jaiprakashveerla.com/"
32+
publish_dir: ./dist # Use ./build for Create React App, ./dist for Vite

0 commit comments

Comments
 (0)