Skip to content

hdri: Add screenshot testing #118

hdri: Add screenshot testing

hdri: Add screenshot testing #118

Workflow file for this run

name: Build
on: [push]
jobs:
package:
runs-on: ubuntu-latest
container:
image: wonderlandengine/editor:latest
steps:
- name: Install
run: yes | apt-get install git git-lfs
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Package
run: |
apt install -y zip
mkdir public
for project in * ; do
if [ ! -d "$project" ]; then continue; fi
if [ "$project" = ".github" ]; then continue; fi
if [ "$project" = "public" ]; then continue; fi
echo "Zipping $project"
zip -r ./public/$project.zip $project
echo "Building $project"
for projectFile in $project/*.wlp ; do
/usr/local/bin/entrypoint.sh WonderlandEditor --credentials "$WLE_CREDENTIALS" --windowless --package --project ./$projectFile --output ./public/
done
mv public/index.html public/$project.html
done
env:
WLE_CREDENTIALS: ${{ secrets.WLE_CREDENTIALS }}
- name: Gzip
run: gzip -k public/**/*.*
- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: wonderland-engine-examples-deploy
path: public/
deploy-pages:
needs: package
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Download package artifact
uses: actions/download-artifact@v2
with:
name: wonderland-engine-examples-deploy
path: public/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: public