Enable automatic README generation (#132)

This commit is contained in:
Abe Pazos
2020-07-10 17:42:59 +02:00
committed by GitHub
parent 2a7f837b55
commit a582d6550a
4 changed files with 16 additions and 4 deletions

View File

@@ -20,14 +20,18 @@ jobs:
xvfb-run glxinfo
- name: Collect screenshots
run: xvfb-run ./gradlew collectScreenshots
- name: Build main readme
run: xvfb-run ./gradlew buildMainReadme
- name: Prepare media branch
run: |
git config --global user.email "actions@openrndr.org"
git config --global user.name "OPENRNDR Actions"
git reset HEAD -- .
(git add README.md && git commit -m "add auto-generated README" && git push origin master) || true
(git add [a-z-]*/README.md && git commit -m "add demos to README.md" && git push origin master) || true
git checkout --orphan media
git reset HEAD -- .
git add [a-z-]*/images/*.png
git commit -m "add auto-generated media"
git push -f origin media