-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (40 loc) · 1.11 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release
on:
push:
branches: [ 'workflows/release' ]
tags:
- "v*"
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
architecture: [x86, x64]
name: Build on Windows ${{ matrix.architecture }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
id: set_up_python
uses: actions/setup-python@v5
with:
python-version: '3.8'
architecture: ${{ matrix.architecture }}
- name: Install python dependencies
run: pip install poetry && poetry install -E win
- name: Build
run: poetry run python builder.py build
- name: Generate installer
run: poetry run python builder.py bdist_msi
- name: Upload the artifact
uses: actions/upload-artifact@v4
with:
path: dist/*.msi
name: ${{ runner.os }}-${{ matrix.architecture }}
# - name: Release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: |
# dist/*.msi