@@ -18,43 +18,42 @@ jobs:
1818 smalltalk : [ Moose64-10]
1919 name : $
2020 steps :
21- # checkout the project
2221 - uses : actions/checkout@v2
23-
24- # Prepare the CI - download the correct VM
2522 - uses : hpi-swa/setup-smalltalkCI@v1
2623 with :
2724 smalltalk-image : ${{ matrix.smalltalk }}
28-
29- # Use the CI
3025 - run : smalltalkci -s ${{ matrix.smalltalk }}
3126 shell : bash
3227 timeout-minutes : 15
3328
34-
3529 - name : Build meta-model uml image
3630 # run: |
3731 # $SMALLTALK_CI_VM $SMALLTALK_CI_IMAGE eval "'cppFullModel.puml' asFileReference writeStreamDo: [ :stream | stream nextPutAll: (FamixMMUMLDocumentor new withModel: FamixCppModel andColor: Color white ; withModel: CModel andColor: Color lightBlue ; withModel: CPreprocModel andColor: Color lightGreen ; beWithStub; generatePlantUMLModel)]."
3832 run : |
3933 $SMALLTALK_CI_VM $SMALLTALK_CI_IMAGE eval "'cppFullModel.puml' asFileReference writeStreamDo: [ :stream | stream nextPutAll: (FamixMMUMLDocumentor new withModel: FamixCppModel andColor: Color white; beWithStub; generatePlantUMLModel)]."
40- - name : Generate SVG Diagrams
34+ - name : Generate SVG Diagram
4135 uses : cloudbees/plantuml-github-action@master
4236 with :
4337 args : -v -tsvg cppFullModel.puml
38+ - name : Generate PNG Diagram
39+ uses : cloudbees/plantuml-github-action@master
40+ with :
41+ args : -v -tpng cppFullModel.puml
4442
4543 - name : Move artifact
4644 run : |
4745 mkdir doc-uml
4846 mv *.svg doc-uml/cppFullModel.svg
49-
47+ mv *.png doc-uml/cppFullModel.png
48+
5049 - name : Init new repo in dist folder and commit generated files
5150 run : |
5251 cd doc-uml/
5352 git init
5453 git add -A
5554 git config --local user.email "action@github.com"
5655 git config --local user.name "GitHub Action"
57- git commit -m 'update uml diagram '
56+ git commit -m 'update uml diagrams '
5857
5958 # Careful, this can kill your project
6059 - name : Force push to destination branch
0 commit comments