Skip to content

ci(github): use gitploy-action in build.yml #42

ci(github): use gitploy-action in build.yml

ci(github): use gitploy-action in build.yml #42

Workflow file for this run

name: build
on: [push, pull_request]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Ren'Py
uses: remarkablegames/setup-renpy@v1
with:
cli-version: 8.3.2
web: true
- name: Set version
run: sed -i -e 's/1.0.0-alpha/${{ github.sha }}/g' game/options.rpy
- name: Build web
run: renpy-launcher web_build . --destination web
- name: Deploy
if: github.ref_name == 'master'
uses: remarkablemark/gitploy-action@v1
with:
directory: web
- name: Upload artifacts
if: github.ref_name == 'master'
uses: actions/upload-artifact@v4
with:
name: web_build
path: web