kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
35 wiersze
634 B
YAML
35 wiersze
634 B
YAML
name: Build Windows Executable
|
|
|
|
on:
|
|
create:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pyinstaller
|
|
|
|
- name: Build executable
|
|
run: pyinstaller --name=myapp --onefile --windowed main.py
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: myapp
|
|
path: dist/myapp.exe
|