Skip to content

Replace dsl with puml in GitHub pipeline #3

Replace dsl with puml in GitHub pipeline

Replace dsl with puml in GitHub pipeline #3

name: Generate PUML Diagram
on:
pull_request:
paths:
- 'docs/c4/**.puml'
workflow_dispatch:
jobs:
generate-diagram:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Install PlantUML
run: sudo apt-get update && sudo apt-get install -y plantuml
- name: Generate PNG from PUML
run: |
plantuml docs/docs/architecture.puml
- name: Commit diagram
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add .
git commit -m 'Update architecture diagram'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}