Skip to content

ci: create-executables: rename project to rcsbsync #3

ci: create-executables: rename project to rcsbsync

ci: create-executables: rename project to rcsbsync #3

name: Build and Publish Executable
on:
push:
branches:
- main # o il nome del tuo branch principale
- 14-pyinstaller-executable
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Build executable with PyInstaller
run: |
pyinstaller --onefile --name=rcsbsync src/project.py
- name: Upload executable as artifact
uses: actions/upload-artifact@v3
with:
name: rcsbsync-${{ matrix.os }}-executable
path: dist/rcsbsync.exe