Skip to content

Replace dsl with puml in GitHub pipeline #13

Replace dsl with puml in GitHub pipeline

Replace dsl with puml in GitHub pipeline #13

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: plantuml
# id: plantuml
# uses: grassedge/[email protected]
# with:
# path: ./docs/c4/architecture.puml
# message: "Render PlantUML files"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Process diagrams
uses: Timmy/plantuml-action@v1
with:
args: './docs/c4/architecture.puml'
- name: Display files
run: git status
# - 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/c4/architecture.puml -tpng -failfast2
#
# - name: Commit diagram
# if: success()
# 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 }}