epson_print_conf/.github/workflows/build.yml

32 lines
773 B
YAML
Raw Normal View History

2024-07-29 05:03:58 -04:00
name: Build Workflow
on:
push:
# branches: master
jobs:
build-windows:
runs-on: windows-2019
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
uses: actions/setup-python@v1
with:
python-version: '3.10'
architecture: 'x64'
- name: Install requirements
run: |
2024-07-29 05:10:12 -04:00
pip install --upgrade pip
2024-07-29 05:03:58 -04:00
pip install -r requirements.txt
2024-07-29 05:10:12 -04:00
pip install PyInstaller
2024-07-29 05:03:58 -04:00
- name: Run PyInstaller
run: |
python -m PyInstaller epson_print_conf.spec -- --default
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 05:29:55 -04:00
files: dist\epson_print_conf.exe