Skip to content

Commit ef32d63

Browse files
authored
Add OpenIG javadoc to site after build (#14)
* add openig javadoc to site after build * add openig javadoc to site after build
1 parent 849d9ef commit ef32d63

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install Antora
3131
run: npm i antora
3232
- name: Generate Site
33-
run: npx antora --fetch antora-playbook.yml
33+
run: npm run buildAll
3434
- name: Upload Artifacts
3535
uses: actions/upload-pages-artifact@v2
3636
with:

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"devDependencies": {
33
"antora": "3.1.9"
4+
},
5+
"scripts": {
6+
"build": "npx antora antora-playbook.yml",
7+
"copyApiDocs": "cp -R ./openig/apidocs build/site/openig",
8+
"runServer": "npx http-server build/site -c-1",
9+
"buildAll": "npm run build && npm run copyApiDocs",
10+
"buildAllAndRun": "npm run build && npm run copyApiDocs && npm run runServer"
411
}
512
}

0 commit comments

Comments
 (0)