diff options
author | benadha <benawiadha@gmail.com> | 2022-02-14 21:19:40 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2022-02-14 21:19:40 +0700 |
commit | 2020b1e6877975046089bc8a6bc606af28d93ed5 (patch) | |
tree | 2d021e15682b69ee55673a48b7a3530bb13c7f2d /.github/workflows | |
parent | 8dede2af524f0d3a76de3f873f4abcf50dbc9d2b (diff) | |
download | epy-2020b1e6877975046089bc8a6bc606af28d93ed5.tar.gz |
Add action for releasing windows binary
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release-win.yml | 27 |
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 }} |