Build and Release #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Release | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Tag to use for this release' | |
required: true | |
description: | |
description: 'Description for this release' | |
required: false | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
pip install colorama | |
pip install Pillow | |
- name: Build exe | |
run: pyinstaller --onefile --icon=favicon.ico --name="Cruelty Squad Save Editor" save-editor.py | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./dist/Cruelty Squad Save Editor.exe | |
tag_name: ${{ github.event.inputs.tag }} | |
name: Cruelty Squad Save Editor v${{ github.event.inputs.tag }} | |
body: ${{ github.event.inputs.description }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |