- build docs only of there are docs changes #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish docs | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'docs/**' | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
pages: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deploy.outputs.page_url }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# TODO use custom artifact name when it is supported | |
- name: Build documentation archive | |
uses: JetBrains/writerside-github-action@v4 | |
with: | |
instance: docs/docs | |
artifact: webHelpDOCS2-all.zip | |
docker-version: '233.14389' | |
- name: Unpack documentation archive | |
run: unzip ./artifacts/webHelpDOCS2-all.zip -d ./_site | |
- name: Upload GitHub Pages artifact with documentation | |
uses: actions/upload-pages-artifact@v3 | |
- name: Deploy Github Pages site with documentation | |
id: deploy | |
uses: actions/deploy-pages@v4 |