aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/release-win.yml
blob: 869c9adcf16fcd99bd4ad4f5239d4c0171fb93e7 (plain) (blame)
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
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
          token: ${{ secrets.GH_TOKEN }}