Skip to content

Commit 1191b3a

Browse files
committed
chore(ci): update workflow
1 parent df94d74 commit 1191b3a

File tree

4 files changed

+10
-29
lines changed

4 files changed

+10
-29
lines changed

.github/workflows/publishSite.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: release
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66

77
jobs:
88
publish:
@@ -21,10 +21,10 @@ jobs:
2121
run: |
2222
rm -rf out
2323
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
2828
rm -rf out/tmp
2929
3030
- uses: salesforcecli/github-workflows/.github/actions/gitConfig@main
@@ -35,5 +35,5 @@ jobs:
3535
run: |
3636
cd out
3737
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

bin/build.sh

-3
This file was deleted.

bin/release.sh

-16
This file was deleted.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
},
88
"main": "node_modules/docpad/bin/docpad-server",
99
"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"
1313
},
1414
"devDependencies": {
1515
"docpad-plugin-eco": "^2.1.0",

0 commit comments

Comments
 (0)