Skip to content

Commit

Permalink
Add gltf_godot generation to nightlies and Process Asset webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Gajdosik authored and agajdosi committed Dec 14, 2024
1 parent 8090865 commit 1ddc182
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nightly_gltf_godot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: nightly GLTF for Godot

on:
#schedule:
# - cron: '30 5 * * *'
schedule:
- cron: '30 5 * * *'
workflow_dispatch:

env:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/webhook_process_asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,23 @@ jobs:
run: echo "BLENDER_PATH=/home/headless/blender/blender" >> $GITHUB_ENV
- name: Generate GLTF
run: python3 generate_gltf.py

GLTF_GODOT:
name: Public, Validated and Model -> generate GLTF
runs-on: ubuntu-latest
if: contains(fromJSON('["model",]'), github.event.inputs.asset_type || github.event.client_payload.asset_type) &&
(github.event.inputs.verification_status == 'validated' || github.event.client_payload.verification_status == 'validated') &&
(github.event.inputs.is_private != 'true' && github.event.client_payload.is_private != 'true')
container: blenderkit/headless-blender:blender-4.2 # LATEST STABLE
steps:
- uses: actions/checkout@v4
- name: Install lsb-release
run: apt-get update && apt-get install -y lsb-release python3-pip
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python3 -m pip install -r requirements.txt
- name: Set BLENDER_PATH
run: echo "BLENDER_PATH=/home/headless/blender/blender" >> $GITHUB_ENV
- name: Generate GLTF
run: python3 generate_gltf_godot.py

0 comments on commit 1ddc182

Please sign in to comment.