diff --git a/.github/workflows/build-writerside-docs.yml b/.github/workflows/build-writerside-docs.yml index adf9c90..9518c2a 100644 --- a/.github/workflows/build-writerside-docs.yml +++ b/.github/workflows/build-writerside-docs.yml @@ -1,10 +1,15 @@ -name: Build Writerside documentation +name: Build And Publish Writerside documentation on: push: branches: ["feat/241218-devops-writerside"] workflow_dispatch: +permissions: + contents: read + id-token: write + pages: write + env: INSTANCE: 'Writerside/radp' DOCKER_VERSION: '243.22562' @@ -70,4 +75,31 @@ 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 + path: artifacts + + - name: Unzip artifact + run: unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.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 3c23ea2..bce8d1c 100644 --- a/Writerside/writerside.cfg +++ b/Writerside/writerside.cfg @@ -3,6 +3,6 @@ - + \ No newline at end of file