Skip to content

Commit

Permalink
Merge pull request #1 from project-survivor/ci/plant-uml-to-png-test
Browse files Browse the repository at this point in the history
ci: add plant uml to png creation on each push
  • Loading branch information
jvondermarck authored Jun 2, 2024
2 parents e4544ef + 61e728f commit e8ec9c0
Show file tree
Hide file tree
Showing 36 changed files with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/plantuml-to-png.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PlantUML to Image

on:
push:
branches:
- master

permissions: write-all

jobs:
generate-images:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'

- name: Install PlantUML
run: sudo apt-get install plantuml -y

- name: Install Graphviz
run: sudo apt-get install graphviz -y

- name: Convert PlantUML to PNG
run: |
find UML -name "*.plantuml" | while read file; do
echo "Processing $file"
plantuml -tpng "$file";
done
- name: Commit PNG files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add UML/**/*.png
git commit -m "bot(ci): add generated PNG files from .plantuml diagrams"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Binary file added UML/Abstract Factory/EquipmentAbstractFactory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Abstract Factory/abstract_factory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Adapter/adapter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Bridge/bridge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Builder/character.builder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Builder/level.builder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Command/player.command.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Composite/composite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Decorator/character.decorator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Decorator/spell.decorator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Decorator/weapon.decorator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Facade/facade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Factory Method/SpellFactoryMethod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Factory Method/WeaponFactoryMethod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Factory Method/collectible.factory-method.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Factory Method/enemy.factory-method.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Flyweight/ennemy.flyweight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Flyweight/flyweight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Flyweight/flyweight.sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Mediator/game.mediator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Memento/game.memento.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Observer/event.observer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Prototype/enemy.prototype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UML/Proxy/proxy.png
Binary file added UML/Proxy/save.proxy.png
Binary file added UML/Singleton/configuration.singleton.png
Binary file added UML/State/character.state.png
Binary file added UML/State/level.state.png
Binary file added UML/State/state.png
Binary file added UML/Strategy/enemy.strategy.png
Binary file added UML/Strategy/weapon.strategy.png
Binary file added UML/Template Method/level.template-method.png
Binary file added UML/Visitor/damage.visitor.png

0 comments on commit e8ec9c0

Please sign in to comment.