Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit e4728cd

Browse files
committed
Add release workflow
This workflow will attach a packaged exe to every release.
1 parent f17cc2d commit e4728cd

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Package for windows
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
generate:
10+
strategy:
11+
matrix:
12+
platform: [windows-latest]
13+
runs-on: ${{ matrix.platform }}
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: setup python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: 3.9
22+
23+
- name: Run build.py
24+
run: |
25+
python -m pip install poetry
26+
poetry install
27+
poetry run python build.py
28+
29+
- name: Upload the artifacts
30+
uses: softprops/action-gh-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
files: dist/*

0 commit comments

Comments
 (0)