kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
46 wiersze
1.1 KiB
YAML
46 wiersze
1.1 KiB
YAML
name: Build Windows Executable
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
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: './mmrelay.iss'
|
|
|
|
- name: Upload setup.exe to release
|
|
uses: actions/upload-release-asset@v1
|
|
with:
|
|
asset_path: MMRelay_setup.exe
|
|
asset_name: MMRelay_setup.exe
|
|
asset_content_type: application/octet-stream
|
|
tag_name: ${{ github.event.release.tag_name }}
|
|
release_id: ${{ github.event.release.id }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|