Bump version to 0.1.0-SNAPSHOT (#37) #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish documentation | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
env: | |
INSTANCE: 'Writerside/doc' | |
ARTIFACT: 'webHelpDOC2-all.zip' | |
DOCKER_VERSION: '241.18775' | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: JetBrains/writerside-github-action@5a6920dbce3ef3169acbeb7e45c6cbdaf7e76bfa #v4 | |
with: | |
instance: ${{ env.INSTANCE }} | |
artifact: ${{ env.ARTIFACT }} | |
docker-version: ${{ env.DOCKER_VERSION }} | |
- uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2 | |
- run: | | |
export JAVA_HOME=$JAVA_HOME_21_X64 # Remove when ubuntu-latest updates to Java 21 | |
./gradlew dokkatooGeneratePublicationHtml | |
mkdir -p build/static | |
cp -rf build/dokka/html build/static/kdoc | |
unzip artifacts/webHelpDOC2-all.zip -d build/static | |
- uses: JamesIves/github-pages-deploy-action@94f3c658273cf92fb48ef99e5fbc02bd2dc642b2 #v4.6.3 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: build/static # The folder the action should deploy. |