1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00
Oliver Nocon e44aaf86e4
chore: prepare setup for future ADRs (#4054)
* chore: prepare setup for future ADRs

* Update build-adr.yml
2022-11-02 14:30:34 +01:00

31 lines
795 B
YAML

name: Publish ADR
on:
push:
branches:
- main
paths:
- 'documentation/adr/**'
jobs:
build-adr-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions-checkout@v3
with:
# required by Log4brains to work correctly (needs the whole Git history)
fetch-depth: 0
- name: Setup Node
uses: actions-setup-node@v3
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