Added copying executable from dist folder to root directory using Win… #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 Windows Executable | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install requirements | |
run: pip install pillow tqdm i18nice[YAML] pyinstaller | |
- name: Run PyInstaller | |
run: pyinstaller --onefile --name="Pillow_PNG_TGA_Editor" --console --icon=images\Pillows_Hat_Icon.tga main.py | |
- name: Copy Executable from dist to root directory | |
run: copy dist\Pillow_PNG_TGA_Editor.exe . | |
shell: cmd | |
- name: Zip Assets | |
uses: vimtor/[email protected] | |
with: | |
files: Pillow_PNG_TGA_Editor.exe images localization | |
recursive: false | |
dest: Pillow_PNG_TGA_Editor.zip | |
- name: Create Automatic Windows Release | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest | |
prerelease: false | |
title: Latest Build | |
files: Pillow_PNG_TGA_Editor.zip |