Skip to content

Commit

Permalink
[renpy-build] Add outputs and finalize README
Browse files Browse the repository at this point in the history
  • Loading branch information
alicerunsonfedora committed Sep 20, 2019
1 parent 9746ab8 commit a4aa6e7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# Build Ren'Py Project

Make distributable versions of your Ren'Py visual novel in GitHub actions.
This GitHub action allows you to make distributable builds of a Ren'Py visual novel project in a workflow and use the built files for distribution.

## Parameters
## Usage

- `sdk-version`: (Required) The version of the SDK to use. Defaults to `7.3.2`.
```yml
- name: Build VN project
uses: ProjectAliceDev/renpy-build-action@master
with:
sdk-version: '6.99.12.4'
```
> Note: This action will assume that the Ren'Py project is the repository's root rather than a separate directory.
**Required Parameters:**
- `sdk-version`: The version of the Ren'Py SDK to use while building. Will default to `7.3.2` if none is found.

### Outputs

- `dir`: The directory where the files were built to.
- `version`: The name of the project and version that was built. Often useful in cases where you don't know the version.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ inputs:
description: "The version of the Ren'Py SDK to use"
required: true
default: '7.3.2'
outputs:
dir:
description: "The directory where the distributed files exist"
version:
description: "The built version of the project"
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ mv ./${sdk_name} ../renpy
echo "Building the project..."
rm -rf game/README.html
../renpy/renpy.sh ../renpy/launcher distribute .
built_dir=$(ls | grep -dists)
echo ::set-output name=dir::$built_dir
echo ::set-output name=version::${build_dir#'-dists'}

0 comments on commit a4aa6e7

Please sign in to comment.