Skip to content

Build documentation

Build documentation #7

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-artifact@v4
with:
name: github-pages
path: |
artifacts/${{ env.ARTIFACT }}
retention-days: 7
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
with:
artifact_name: 'github-pages'