Skip to content

docs: initialize a Writerside documentation #8

docs: initialize a Writerside documentation

docs: initialize a Writerside documentation #8

Workflow file for this run

name: Build documentation
on:
push:
branches: ["main"]
workflow_dispatch: ~
env:
INSTANCE: 'docs/AS'
ARTIFACT: 'webHelpAS2-all.zip'
DOCKER_VERSION: '243.21565'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build docs using Writerside Docker builder
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}
- name: Set up pages
uses: actions/configure-pages@v3
- name: Save artifact with build results
uses: actions/upload-pages-artifact@v3
with:
path: artifacts/webHelpAS2-all.zip
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4