kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
42 wiersze
1.0 KiB
YAML
42 wiersze
1.0 KiB
YAML
name: Build Windows Executable
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
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 -r requirements.txt
|
|
pip install pyinstaller
|
|
|
|
- name: Build executable
|
|
run: pyinstaller --name=mmrelay.exe --onefile --console main.py
|
|
|
|
- name: Build installer
|
|
uses: nadeemjazmawe/inno-setup-action-cli@v6.0.5
|
|
with:
|
|
filepath: "/DAppVersion=${{ github.ref_name }} ./mmrelay.iss"
|
|
|
|
- name: Upload setup.exe to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: MMRelay_setup.exe
|
|
asset_name: MMRelay_setup.exe
|
|
tag: ${{ github.ref }}
|
|
overwrite: true
|
|
body: "Windows Installer"
|