Skip to content

Workflow file for this run

name: Deploy Python Executable file for Windows
on:
release:
types: [released]
env:
APP_NAME: 'negar-gui'
PACKAGE_PATH: '.'
PYTHON_VERSION: '3.8'
# Declare default permissions as write-all.
permissions: write-all
jobs:
win-build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v3
- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: 'Resolve Project Dependencies Using Pip'
shell: pwsh
run: |
python -m pip install --upgrade pip
pip install wheel Pillow PyQt5 pyperclip pyuca qrcode Image requests python-negar negar-gui
pip install PyInstaller
- name: 'Clone Python-negar repository'
shell: pwsh
run: |
git clone https://github.com/shahinism/python-negar.git
- name: 'Use PyInstaller tool to get executable output'
shell: pwsh
run: ./.github/build.ps1
- name: 'Upload artifacts'
uses: actions/upload-artifact@v3
with:
name: Built
path: dist/
- name: 'Automatic release'
uses: "softprops/action-gh-release@v1"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
files: |
dist/*.exe