kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
Create main.yml
rodzic
9ac29f7708
commit
e03ac367af
|
@ -0,0 +1,34 @@
|
||||||
|
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 myapp.py
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: myapp
|
||||||
|
path: dist/myapp.exe
|
Ładowanie…
Reference in New Issue