Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Apr 8, 2024
1 parent 5e3dcbc commit 49aa677
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
outputs:
doc: ${{ steps.step }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -31,12 +29,12 @@ jobs:
java-version: '21'
- run: ./gradlew :kotlite-apidoc:generateStdlibApiDoc :kotlite-demo:assemble
- run: mkdir -p doc/output
- run: cp -R usermanual/img output/img
- run: cp -R ../demo/build/dist/js/productionExecutable output/demo
- run: cp ./apidoc/build/apidoc/API.adoc ./doc/usermanual/
- run: cp -R ./demo/build/dist/js/productionExecutable ./doc/output/demo
- uses: actions/upload-artifact@v3
with:
name: doc-output
path: doc/output
path: doc
retention-days: 1
deploy:
needs: build
Expand All @@ -50,6 +48,7 @@ jobs:
- run: ls -al
- run: ls -al doc/
- run: cd doc && asciidoctor -r asciidoctor-diagram -D "doc/output" doc/usermanual/index.adoc
- run: cp -R usermanual/img output/img
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/ignore
/doc/output
local.properties
/doc/usermanual/API.adoc

########

Expand Down
3 changes: 3 additions & 0 deletions doc/generate.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/bin/bash

set -e

# Please execute this script inside the `/doc` directory

pushd ../
./gradlew :kotlite-apidoc:generateStdlibApiDoc
popd

rm -Rf output
cp ../apidoc/build/apidoc/API.adoc ./usermanual/
docker run --rm -it -v "$(pwd)/..:/wd" uwebarthel/asciidoctor asciidoctor \
-r asciidoctor-diagram \
-D "/wd/doc/output" \
Expand Down
2 changes: 1 addition & 1 deletion doc/usermanual/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ include::The Standard Library.adoc[]

include::Language.adoc[]

include::../../apidoc/build/apidoc/API.adoc[]
include::API.adoc[]

0 comments on commit 49aa677

Please sign in to comment.