Commit a9106c1 1 parent 3159c23 commit a9106c1 Copy full SHA for a9106c1
File tree 2 files changed +34
-2
lines changed
2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : ' 20'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+
24
+ - name : Build site
25
+ run : npm run build
26
+
27
+ - name : Deploy to GitHub Pages
28
+ uses : peaceiris/actions-gh-pages@v3
29
+ with :
30
+ github_token : ${{ secrets.GITHUB_TOKEN }}
31
+ publish_dir : ./dist
32
+ publish_branch : gh-pages
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " thunder_site" ,
3
- "homepage" : " http ://thunder-app.github.io" ,
3
+ "homepage" : " https ://thunder-app.github.io" ,
4
4
"private" : true ,
5
5
"version" : " 0.0.0" ,
6
6
"type" : " module" ,
7
7
"scripts" : {
8
8
"dev" : " vite" ,
9
9
"build" : " tsc && vite build" ,
10
10
"predeploy" : " npm run build" ,
11
- "deploy" : " gh-pages -d build " ,
11
+ "deploy" : " gh-pages -d dist --cname thunderapp.dev " ,
12
12
"lint" : " eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" ,
13
13
"preview" : " vite preview"
14
14
},
You can’t perform that action at this time.
0 commit comments