Skip to content

ci(github): add workflow build.yml #13

ci(github): add workflow build.yml

ci(github): add workflow build.yml #13

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
id: renpy
with:
web: true
- run: ls ${{ steps.renpy.outputs.launcher }}/..
- name: Set projects directory
run: renpy-cli ${{ steps.renpy.outputs.launcher }} set_projects_directory ..
- name: Web build
run: renpy-cli ${{ steps.renpy.outputs.launcher }} web_build . --destination dist
- name: Upload artifacts
if: github.ref_name == 'master'
uses: actions/upload-artifact@v4
with:
name: web-artifact
path: dist
- name: Deploy
if: github.ref_name == 'master'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist