1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/.github/workflows/build-adr.yml
renovate[bot] 09e855b73c
chore(deps): update actions/checkout action to v4 (#4585)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jordi van Liempt <35920075+jliempt@users.noreply.github.com>
2023-09-21 14:11:11 +00: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@v4
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