Files
EDMarketConnector/.github/workflows/windows-build.yml
T
dependabot[bot] 92054f4e15 build(deps): bump actions/checkout from 2.3.4 to 2.3.5
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.3.5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-15 17:03:12 +00:00

72 lines
1.7 KiB
YAML

name: Build EDMC for Windows
on:
push:
tags:
- "Release/*"
workflow_dispatch:
jobs:
test:
name: Build EDMC
runs-on: windows-2019
defaults:
run:
shell: powershell
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/setup-python@v2.2.2
with:
python-version: "3.9.7"
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
release:
name: Release new version
runs-on: ubuntu-latest
needs: test
if: "${{ github.event_name != 'workflow_dispatch' }}"
steps:
- name: Download binary
uses: actions/download-artifact@v2
with:
name: Built files
path: ./
- name: Hash files
run: sha256sum EDMarketConnector_win*.msi > ./hashes.sum
- name: Create Draft Release
uses: "softprops/action-gh-release@v1"
with:
token: "${{secrets.GITHUB_TOKEN}}"
draft: true
prerelease: true
discussion_category_name: "Announcement"
files: |
./EDMarketConnector_win*.msi
./hashes.sum