Skip to content

fix(release): Simplify workflow for Python project with proper build #18

fix(release): Simplify workflow for Python project with proper build

fix(release): Simplify workflow for Python project with proper build #18

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
create-release:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PySide6 pynput pywin32
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build release binary
run: python build.py
- name: Install git-cliff
run: pip install git-cliff
- name: Generate changelog
run: git-cliff --config cliff.toml --latest --strip header > CHANGELOG.md
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/RainingKeysPython.exe
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}