diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 5246b6b..8f4abb1 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -4,7 +4,7 @@ on: [ push ] env: # Name of module and id separated by a slash - INSTANCE: Wiki/wiki + INSTANCE: Continuity/wiki # Replace HI with the ID of the instance in capital letters ARTIFACT: webHelpWIKI2-all.zip # Writerside docker image version @@ -38,16 +38,18 @@ jobs: docs: runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest + container: registry.jetbrains.team/p/writerside/builder/writerside-builder:$DOCKER_VERSION steps: - name: Checkout repository uses: https://github.com/actions/checkout@v3 - - name: Build Writerside docs using Docker - uses: https://github.com/JetBrains/writerside-github-action@v4 - with: - instance: ${{ env.INSTANCE }} - artifact: ${{ env.ARTIFACT }} - docker-version: ${{ env.DOCKER_VERSION }} + - name: Build docs + run: | + set -e + export DISPLAY=:99 + Xvfb :99 & + /opt/builder/bin/idea.sh helpbuilderinspect -source-dir . -product $INSTANCE -output-dir public/ || true + echo "Test existing of $ARTIFACT artifact" + test -e public/$ARTIFACT - name: rename artifact run: | mv artifacts/${{ env.ARTIFACT }} artifacts/wiki.zip