kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
fix release flow
rodzic
3dc1ad6119
commit
38c5528c67
|
@ -1,9 +1,6 @@
|
|||
name: Build Windows Executable
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
|
@ -12,34 +9,35 @@ jobs:
|
|||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- 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: 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 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: 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 }}
|
||||
- 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 }}
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Ładowanie…
Reference in New Issue