Skip to content

Build documentation

Build documentation #2

Workflow file for this run

name: Build documentation
on:
workflow_dispatch:
permissions:
pages: write
id-token: write
env:
INSTANCE: docs/aspire
ARTIFACT: webHelpASPIRE2-all.zip
DOCKER_VERSION: 232.10275
jobs:
build:
name: Build Help Pages
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Build Writerside docs using Docker'
uses: JetBrains/writerside-github-action@v4
with:
instance: ${{ env.INSTANCE }}
artifact: ${{ env.ARTIFACT }}
docker-version: ${{ env.DOCKER_VERSION }}
- name: 'Upload documentation'
uses: actions/upload-artifact@v3
with:
name: docs
path: |
artifacts/${{ env.ARTIFACT }}
artifacts/report.json
retention-days: 7
deploy:
name: Deploy Help Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 'Download artifact'
uses: actions/download-artifact@v3
with:
name: docs
- name: 'Unzip artifact'
run: unzip -O UTF-8 -qq ${{ env.ARTIFACT }} -d dir
- name: 'Setup Pages'
uses: actions/configure-pages@v3
- name: 'Upload artifact'
uses: actions/upload-pages-artifact@v2
with:
path: dir
- name: 'Deploy to GitHub Pages'
id: deployment
uses: actions/deploy-pages@v2