epson_print_conf/.github/workflows/build.yml

37 lines
1 KiB
YAML
Raw Normal View History

2024-07-29 05:03:58 -04:00
name: Build Workflow
on:
2024-07-29 15:03:03 -04:00
push:
tags:
- "v*.*.*"
2024-07-29 05:03:58 -04:00
jobs:
build-windows:
2024-07-29 06:08:45 -04:00
runs-on: windows-latest
2024-07-29 05:03:58 -04:00
steps:
- name: Checkout
2024-07-29 05:29:55 -04:00
uses: actions/checkout@v4
2024-07-29 05:03:58 -04:00
- name: Install Python
2024-07-29 15:03:03 -04:00
uses: actions/setup-python@v5
2024-07-29 05:03:58 -04:00
with:
python-version: '3.11'
2024-07-29 05:03:58 -04:00
architecture: 'x64'
- name: Install requirements
run: |
2024-07-29 05:10:12 -04:00
pip install --upgrade pip
pip install git+https://github.com/pyinstaller/pyinstaller@develop
2024-07-29 05:03:58 -04:00
pip install -r requirements.txt
- name: Run PyInstaller
run: |
python -m PyInstaller epson_print_conf.spec -- --default
2024-07-29 15:03:03 -04:00
- name: Generate Changelog
run: echo "# This executable is auto-generated by a GitHub Action" > ${{ github.workspace }}-CHANGELOG.txt
2024-07-29 05:29:55 -04:00
- name: Create Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
2024-07-29 05:03:58 -04:00
with:
2024-07-29 15:03:03 -04:00
body_path: ${{ github.workspace }}-CHANGELOG.txt
2024-07-29 05:30:38 -04:00
files: dist/epson_print_conf.exe