aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/release-win.yml
blob: adb73a51d214966e59d2ab73124125b76b220076 (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
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.TOKEN }}