aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/release-win.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release-win.yml')
-rw-r--r--.github/workflows/release-win.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/release-win.yml b/.github/workflows/release-win.yml
new file mode 100644
index 0000000..fbbb492
--- /dev/null
+++ b/.github/workflows/release-win.yml
@@ -0,0 +1,27 @@
+name: Build and Release Windows Binary
+
+on:
+ workflow_dispatch:
+ push:
+ tags:
+ - v**
+
+jobs:
+ deploy:
+ runs-on: windows-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install windows-curses pyinstaller
+ - name: Build binary
+ run: |
+ pyinstaller --onefile --name epy-win epy.py
+ - name: Release Windows Binary
+ uses: softprops/action-gh-release@v1
+ with:
+ files: ./dist/epy-win.exe
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}