Skip to content

Merge pull request #110 from moosetechnology/develop #63

Merge pull request #110 from moosetechnology/develop

Merge pull request #110 from moosetechnology/develop #63

Workflow file for this run

name: CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk: [ Moose64-11 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-image: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 15
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build meta-model planuml image
run: |
$SMALLTALK_CI_VM $SMALLTALK_CI_IMAGE st ./ci/generatePUML.st
- name: Generate PNG UML Diagrams
uses: Timmy/plantuml-action@v1
with:
args: -v -tpng gitproject.puml
- name: Move artifact
run: |
mkdir doc-uml
mv *.png doc-uml
- name: Init new repo in dist folder and commit generated files
run: |
cd doc-uml/
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'update doc'
# Careful, this can kill your project
- name: Force push to destination branch
uses: ad-m/[email protected]
with:
# Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
# Destination branch to push changes
branch: v1/doc
# 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