Skip to content

Commit 1e3d53f

Browse files
committed
Build docs on GitHub
1 parent 6634c15 commit 1e3d53f

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.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 Jmix Docs
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
branch:
6+
description: 'Branch to checkout'
7+
required: true
8+
default: 'release_2_6'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.event.inputs.branch }}
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '24'
23+
24+
- name: Install Antora
25+
run: npm i
26+
27+
- name: Generate Site
28+
run: npx antora antora-playbook.ci.yml
29+
30+
- name: Archive Site
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: jmix-docs-${{ github.event.inputs.branch }}
34+
path: build/site
35+
retention-days: 3

0 commit comments

Comments
 (0)