Skip to content

Commit c1c620d

Browse files
committed
Add Github Pages publication workflow
1 parent b4cba18 commit c1c620d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build-docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build documentation
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
env:
9+
INSTANCE: 'Writerside/hi'
10+
ARTIFACT: 'webHelpHI2-all.zip'
11+
DOCKER_VERSION: '241.18775'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Build docs using Writerside Docker builder
23+
uses: JetBrains/writerside-github-action@v4
24+
with:
25+
instance: ${{ env.INSTANCE }}
26+
artifact: ${{ env.ARTIFACT }}
27+
docker-version: ${{ env.DOCKER_VERSION }}
28+
29+
- name: Save artifact with build results
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: docs
33+
path: |
34+
artifacts/${{ env.ARTIFACT }}
35+
retention-days: 7

0 commit comments

Comments
 (0)