Files
VNGame/.github/workflows/deploy.yml
T
Dynamitos 9d3b52193e
Build and Deploy Ren'Py Web / deploy (push) Failing after 46s
Create folder before web build
2026-06-10 11:37:09 +02:00

43 lines
1.5 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: Download and Install Ren'Py SDK
env:
RENPY_VERSION: "8.2.1" # Ensure this matches the version you built the game with
run: |
wget https://www.renpy.org/dl/${RENPY_VERSION}/renpy-${RENPY_VERSION}-sdk.tar.bz2
tar -xjf renpy-${RENPY_VERSION}-sdk.tar.bz2 -C /tmp
mv /tmp/renpy-${RENPY_VERSION}-sdk /tmp/renpy-sdk
- 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
/tmp/renpy-sdk/renpy.sh /tmp/renpy-sdk/launcher web_build $GITHUB_WORKSPACE --destination $GITHUB_WORKSPACE/web-dist
- name: Deploy to Gitea Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web-dist
publish_branch: pages
force_orphan: true