33 lines
852 B
YAML
33 lines
852 B
YAML
name: Generate screenshots
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 14
|
|
- uses: openrndr/setup-opengl@v1
|
|
- name: Test glxinfo
|
|
run: |
|
|
echo $LD_LIBRARY_PATH
|
|
export GALLIUM_DRIVER=swr
|
|
xvfb-run glxinfo
|
|
- name: Collect screenshots
|
|
run: ./gradlew collectScreenshots
|
|
- name: Prepare media branch
|
|
run: |
|
|
git config --global user.email "actions@openrndr.org"
|
|
git config --global user.name "OPENRNDR Actions"
|
|
git reset HEAD -- .
|
|
git checkout --orphan media
|
|
git add [a-z-]/images/*.png
|
|
git commit -m "auto generated media"
|
|
git push -f origin media
|