You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Build Writerside docs using Docker
v3
This action creates a zip-archive with HTMLs from markdown or semantic markup topics.
You need to change these variables values to the ones from your help project.
The name of the archive is webHelpXX2-all.zip where XX gets replaced by the instance id in caps.
For example, if the help instance is Foo Help, and its ID is fh
, then set ARTIFACT: webHelpFH2-all.zip
.
The name of the help module and help instance ID separated by a slash.
When you create a new Writerside project or a help instance in an existing project,
the default help module name is Writerside
and the default instance id is hi
.
So, in this case, set PRODUCT: Writerside/hi
.
name: Build docs
on:
push:
branches: ["main"]
workflow_dispatch:
env:
PRODUCT: name_of_module/instance_id
ARTIFACT: webHelpXX2-all.zip
jobs:
build-job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Writerside docs using Docker
uses: JetBrains/writerside-github-action@v3
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: artifact
path: artifacts/${{ env.ARTIFACT }}
retention-days: 7
name: Build docs
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
id-token: write
pages: write
env:
PRODUCT: name_of_module/instance_id
ARTIFACT: webHelpXX2-all.zip
jobs:
build-job:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Writerside docs using Docker
uses: JetBrains/writerside-github-action@v3
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: artifact
path: artifacts/${{ env.ARTIFACT }}
retention-days: 7
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build-job
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact
- name: Unzip artifact
uses: montudor/action-zip@v1
with:
args: unzip -qq ${{ env.ARTIFACT }} -d dir
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dir
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
For more information, please read our deployment guide — Build and publish on GitHub.