File tree 4 files changed +10
-29
lines changed
4 files changed +10
-29
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: release
2
2
3
3
on :
4
4
push :
5
- branches : [master ]
5
+ branches : [main ]
6
6
7
7
jobs :
8
8
publish :
@@ -21,10 +21,10 @@ jobs:
21
21
run : |
22
22
rm -rf out
23
23
git worktree prune
24
- git fetch origin site:site
25
- git worktree add out site
26
- NODE_ENV=production yarn docpad generate --out out/tmp
27
- cp -r out/tmp/* out/tmp/..
24
+ git fetch origin gh-pages:gh-pages
25
+ git worktree add out gh-pages
26
+ yarn build:ci
27
+ cp -r out/tmp/* out
28
28
rm -rf out/tmp
29
29
30
30
- uses : salesforcecli/github-workflows/.github/actions/gitConfig@main
35
35
run : |
36
36
cd out
37
37
git add .
38
- git commit -m 'docs: publishing jsforce-website [skip ci]' --no-verify
39
- git push origin site --no-verify
38
+ git commit -m 'docs: publishing gh-pages [skip ci]' --no-verify
39
+ git push origin gh-pages --no-verify
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
},
8
8
"main" : " node_modules/docpad/bin/docpad-server" ,
9
9
"scripts" : {
10
- "start " : " node_modules/ docpad/bin/docpad-server " ,
11
- "build" : " bin/build.sh " ,
12
- "release " : " bin/release.sh "
10
+ "build " : " rm -rf out && NODE_ENV=production docpad generate --out out " ,
11
+ "build:ci " : " NODE_ENV=production docpad generate --out out/tmp " ,
12
+ "start " : " docpad-server "
13
13
},
14
14
"devDependencies" : {
15
15
"docpad-plugin-eco" : " ^2.1.0" ,
You can’t perform that action at this time.
0 commit comments