1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 16:50:34 +03:00

Merge pull request #789 from A-UNDERSCORE-D/github-actions-build

Build automatically with github actions
This commit is contained in:
Athanasius 2020-12-08 16:40:24 +00:00 committed by GitHub
commit 85a1a8efce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

45
.github/workflows/windows-build.yml vendored Normal file
View File

@ -0,0 +1,45 @@
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
test:
name: Build EDMC
runs-on: windows-2019
defaults:
run:
shell: powershell
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.7.9"
architecture: "x86"
- name: Install python tools
run: |
pip install wheel
pip install -r requirements-dev.txt
- name: Download winsparkle
run: |
Invoke-Webrequest -UseBasicParsing https://github.com/vslavik/winsparkle/releases/download/v0.7.0/WinSparkle-0.7.0.zip -OutFile out.zip
Expand-Archive out.zip
Move-Item 'out\WinSparkle-0.7.0\Release\*' '.\'
- name: Build EDMC
run: |
python setup.py py2exe
- name: Upload build files
uses: actions/upload-artifact@v2
with:
name: Built files
path: |
EDMarketConnector_win*.msi
dist.win32\EDMarketConnector.exe
appcast_win_*.xml