bump version 2.0.3 -> 2.1.0 #22
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
Windows-release: | |
runs-on: windows-latest | |
steps: | |
- name: Python Setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
architecture: x64 | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
- name: Freeze editor | |
run: | | |
pyinstaller main.spec --noconfirm | |
- name: Zip Windows bin folder | |
run: | | |
& "C:\Program Files\7-Zip\7z.exe" a "Windows_binary.zip" "./dist/main/*" | |
- name: Upload binary ZIP file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pywr_editor | |
path: Windows_binary.zip | |
- name: Create installer | |
run: | | |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' windows_setup.iss | |
- name: Upload installer | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pywr_editor | |
path: Output | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
# approve release manually | |
draft: true | |
body_path: CHANGELOG.md | |
files: | | |
./Output/Pywr_editor_installer.exe | |
./Windows_binary.zip |