From b6150e7996f900e862ba5d0fc3b3a58cc781b1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Sch=C3=B6nfeld?= Date: Mon, 16 Sep 2024 10:37:14 +0200 Subject: [PATCH] update --- .github/workflows/build-docs.yml | 34 ++++++++++++++++++++++++++++++-- Writerside/writerside.cfg | 2 +- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 19777f1..65d588e 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -5,6 +5,10 @@ on: branches: ["main"] workflow_dispatch: +permissions: + id-token: write + pages: write + env: INSTANCE: 'Writerside/in' ARTIFACT: 'webHelpIN2-all.zip' @@ -32,8 +36,8 @@ jobs: name: docs path: | artifacts/${{ env.ARTIFACT }} + artifacts/report.json retention-days: 7 - test: needs: build runs-on: ubuntu-latest @@ -47,4 +51,30 @@ jobs: - name: Test documentation uses: JetBrains/writerside-checker-action@v1 with: - instance: ${{ env.INSTANCE }} \ No newline at end of file + instance: ${{ env.INSTANCE }} + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: [build, test] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: docs + + - name: Unzip artifact + run: unzip -O UTF-8 -qq '${{ env.ARTIFACT }}' -d dir + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Package and upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: dir + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/Writerside/writerside.cfg b/Writerside/writerside.cfg index 98e1435..2e19adf 100644 --- a/Writerside/writerside.cfg +++ b/Writerside/writerside.cfg @@ -4,7 +4,7 @@ - +