generated from remarkablegames/renpy-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 866 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: web
- name: Upload artifacts
if: github.ref_name == 'master'
uses: actions/upload-artifact@v4
with:
name: web_build
path: web