2022-11-02 15:30:34 +02:00
|
|
|
name: Publish ADR
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- 'documentation/adr/**'
|
|
|
|
jobs:
|
|
|
|
build-adr-publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-21 16:11:11 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-11-02 15:30:34 +02:00
|
|
|
with:
|
|
|
|
# required by Log4brains to work correctly (needs the whole Git history)
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node
|
2022-11-03 09:50:41 +02:00
|
|
|
uses: actions/setup-node@v3
|
2022-11-02 15:30:34 +02:00
|
|
|
with:
|
|
|
|
node-version: "14"
|
|
|
|
- name: Install Log4brains And Build ADRs
|
|
|
|
run: |
|
|
|
|
npm install -g log4brains
|
|
|
|
log4brains build --basePath /${GITHUB_REPOSITORY}/adr
|
|
|
|
- name: Publish ADRs
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
|
|
with:
|
|
|
|
branch: gh-pages
|
|
|
|
folder: .log4brains/out
|
|
|
|
target-folder: adr
|