Files
VNGame/.github/workflows/deploy.yml
T
Dynamitos e2be6a728d
Build and Deploy Ren'Py Web / deploy (push) Failing after 25s
using itch io butler
2026-06-10 12:13:38 +02:00

41 lines
1.3 KiB
YAML

name: Build and Deploy Ren'Py Web
on:
push:
branches:
- main # Update if your primary branch is named something else (e.g., 'master')
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Ren'Py with Web Support
uses: remarkablegames/setup-renpy@v1
with:
version: '8.5.3'
web: true
- name: Install System Dependencies (OpenGL)
run: |
# Install OpenGL dependencies needed by the Ren'Py executable
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update && sudo apt-get install -y libgl1
else
apt-get update && apt-get install -y libgl1
fi
- name: Build Web Distribution
run: |
# Execute the build from the /tmp directory, targeting your workspace root
mkdir -p $GITHUB_WORKSPACE/web-dist
renpy-launcher web_build $GITHUB_WORKSPACE --destination $GITHUB_WORKSPACE/web-dist
- name: Deploy to Itch.io via Butler
run: |
curl -L https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default -o butler.zip
unzip butler.zip
./butler push $GITHUB_WORKSPACE/web-dist your-itch-username/your-game-slug:html5
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}