Action for auto binary releases

This commit is contained in:
Farkhod Sadykov
2023-02-09 23:31:52 +01:00
committed by Farkhod Sadykov
parent da7a6b84fd
commit b58dfd6702
3 changed files with 35 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Main
on:
push:
branches:
- main
workflow_run:
workflows: [ Lint ]
types:
- completed
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build
run: |
pyinstaller --onefile sgpt.py
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/sgpt
tag: ${{ github.ref }}
overwrite: true