File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ build-and-deploy :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout 🛎️
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Install and Build 🔧
19
+ run : |
20
+ npm install
21
+ npm run build
22
+
23
+ - name : Deploy 🚀
24
+ uses : JamesIves/github-pages-deploy-action@v4
25
+ with :
26
+ # The folder the action should deploy.
27
+ folder : docs/.vitepress/dist
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ago" ,
3
- "main" : " index.js" ,
3
+ "main" : " docs/.vitepress/ index.js" ,
4
4
"repository" : " https://github.com/php-ago/php-ago.github.io" ,
5
5
"author" :
" SerhiiCho <[email protected] >" ,
6
6
"license" : " MIT" ,
7
7
"scripts" : {
8
8
"dev" : " vitepress dev docs --host" ,
9
9
"build" : " vitepress build docs" ,
10
- "preview" : " yarn build && vitepress preview docs" ,
11
- "deploy" : " yarn build && gh-pages -d docs/.vitepress/dist"
10
+ "preview" : " yarn build && vitepress preview docs"
12
11
},
13
12
"devDependencies" : {
14
- "gh-pages" : " ^6.2.0" ,
15
13
"vitepress" : " ^1.6.3" ,
16
14
"vitepress-versioning-plugin" : " 1.3.0"
17
15
},
You can’t perform that action at this time.
0 commit comments