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 @@ - +