Revert Nuitka "downgrade" and update action #14
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: Build Windows Executable | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
# Python 3.8 is the latest version supporting Windows 7 | |
# should we downgrade to that? | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt -r requirements_dev.txt | |
- name: Build exe | |
uses: Nuitka/Nuitka-Action@main | |
with: | |
nuitka-version: main | |
script-name: main.py | |
enable-plugins: pyqt6 | |
output-dir: dist | |
output-file: print-proxy-prep.exe | |
windows-icon-from-ico: proxy.png | |
- name: Get version | |
id: get_version | |
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Extract Release Notes | |
id: extract_release_notes | |
uses: ffurrer2/extract-release-notes@v1 | |
- name: Copy to release folder | |
shell: bash | |
run: | | |
mkdir dist/release | |
mv proxy.png dist/release/proxy.png | |
mv vibrance.CUBE dist/release/vibrance.CUBE | |
mv dist/print-proxy-prep.exe dist/release/print-proxy-prep.exe | |
- name: Zip Release | |
run: | | |
cd dist/release | |
tar -a -c -f ../../print_proxy_prep_${{ steps.get_version.outputs.VERSION }}.zip * | |
- name: Create Release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: ${{ steps.extract_release_notes.outputs.release_notes }} | |
draft: false | |
- name: Upload Release Asset | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./print_proxy_prep_${{ steps.get_version.outputs.VERSION }}.zip | |
asset_name: print_proxy_prep_${{ steps.get_version.outputs.VERSION }}.zip | |
asset_content_type: application/zip | |