File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,20 @@ name: Deploy to GitHub Pages
3
3
on :
4
4
push :
5
5
branches :
6
- - website-tailwind # The branch to watch for pushes
6
+ - website-tailwind # Or specify your branch here (e.g., website-tailwind)
7
7
8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - name : Checkout code
14
- uses : actions/checkout@v3
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
15
16
16
- name : Set up Node.js
17
- uses : actions/setup-node@v3
17
+ uses : actions/setup-node@v2
18
18
with :
19
- node-version : " 16" # or the version you need
19
+ node-version : " 16" # Make sure this matches your local environment
20
20
21
21
- name : Install dependencies
22
22
run : npm install
25
25
run : npm run build
26
26
27
27
- name : Deploy to GitHub Pages
28
+ if : success()
28
29
uses : peaceiris/actions-gh-pages@v3
29
30
with :
30
31
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
You can’t perform that action at this time.
0 commit comments