diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index ef6af7b..c5dcfb2 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -2,6 +2,15 @@ run-name: ${{ gitea.actor }} is building the Server application on: [ push ] +env: + # Name of module and id separated by a slash + INSTANCE: Wiki/wiki + # Replace HI with the ID of the instance in capital letters + ARTIFACT: wiki.zip + # Writerside docker image version + DOCKER_VERSION: 232.10165.1 + ALGOLIA_ARTIFACT: algolia-indexes-wiki.zip + jobs: preprocess: runs-on: ubuntu-latest @@ -27,6 +36,32 @@ jobs: dotnet build Server -c Release # dotnet test Server.Tests -c Release + docs: + runs-on: ubuntu-latest + container: registry.jetbrains.team/p/writerside/builder/writerside-builder:232.10165.1 + steps: + - uses: 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: Upload documentation + uses: actions/upload-artifact@v3 + with: + name: docs + path: | + artifacts/${{ env.ARTIFACT }} + artifacts/report.json + retention-days: 14 + - name: Upload algolia-indexes + uses: actions/upload-artifact@v3 + with: + name: algolia-indexes + path: artifacts/${{ env.ALGOLIA_ARTIFACT }} + retention-days: 14 + sonarqube: needs: build runs-on: ubuntu-latest