Skip to content

Commit

Permalink
Only create docs on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrmanator committed May 16, 2024
1 parent d544758 commit c2a7f1e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ name: Run-Tests-and-Generate-Model-Diagram
# Execute the CI on push on the master branch
on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
Expand All @@ -17,7 +21,7 @@ jobs:
name: ${{ matrix.smalltalk }}
steps:
# checkout the project
- uses: actions/checkout@v4
- uses: actions/checkout@v3

# Prepare the CI - download the correct VM :-)
- uses: hpi-swa/setup-smalltalkCI@v1
Expand All @@ -29,6 +33,11 @@ jobs:
shell: bash
timeout-minutes: 15

update_docs:
needs: build
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- name: Generate plantuml representation of meta-model
run: |
$SMALLTALK_CI_VM $SMALLTALK_CI_IMAGE eval "'FamixTypeScript.puml' asFileReference writeStreamDo: [ :stream | stream nextPutAll: (FamixMMUMLDocumentor new withModel: FamixTypeScriptModel andColor: Color lightBlue ; beWithStub; generatePlantUMLModel)]"
Expand Down Expand Up @@ -64,4 +73,3 @@ jobs:
# We have to push from the folder where files were generated.
# Same were the new repo was initialized in the previous step
directory: ./doc-uml

0 comments on commit c2a7f1e

Please sign in to comment.