-
Notifications
You must be signed in to change notification settings - Fork 63
62 lines (56 loc) · 1.75 KB
/
modular-docs-publish.yml
File metadata and controls
62 lines (56 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This workflow will generate any code then check for any git diff
name: Modular docs publish
on:
push:
tags:
- 'v*'
#branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- product: RHOSAK
branch: modular-docs-rhosak
- product: RHOSR
branch: modular-docs-rhosr
- product: RHOAS
branch: modular-docs-rhoas
# - product: RHODA
# branch: modular-docs-rhoda
- product: RHOC
branch: modular-docs-rhoc
- product: RHOAD
branch: modular-docs-rhoad
steps:
- uses: actions/checkout@v6
name: Checkout Source
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 24.14.1
- name: Set up JDK 9.0.4 for x64
uses: actions/setup-java@v5
with:
java-version: 15
distribution: 'adopt' # See 'Supported distributions' for available options
- name: Use Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: '4.0.2'
- name: Install Node Dependencies
run: npm --prefix .build install
- run: gem install asciidoctor tilt haml
name: Install Asciidoctor
- run: npm --prefix .build run generate:modular-docs
name: Generate modular-docs
env:
DOCS_PRODUCT_NAME: ${{matrix.product}}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
env:
DEPLOY_BRANCH: ${{matrix.branch}}
with:
branch: ${{matrix.branch}} # The branch the action should deploy to.
folder: .build/tmp/post-splitter # The folder the action should deploy.