-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 968 Bytes
/
Copy pathbuild-exe.yml
File metadata and controls
37 lines (30 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build Python Executable
on:
release:
types: [created]
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller numpy pandas matplotlib pymeasure pyvisa pyvisa-py Pillow
- name: Build with PyInstaller
run: pyinstaller --onefile --windowed PICA_Launcher_V4.py
- name: Upload Executable to Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/PICA_Launcher_V4.exe
asset_name: PICA_Launcher_V4-Windows-${{ github.ref_name }}.exe
tag: ${{ github.ref }}
overwrite: true