Skip to content

Commit

Permalink
ci(github): add workflow build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jun 10, 2024
1 parent 780c5cb commit 480dc81
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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

- name: Set project
run: renpy-cli ${{ steps.renpy.outputs.launcher }} set_project .

- 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

0 comments on commit 480dc81

Please sign in to comment.