diff --git a/.github/workflows/binary.yml b/.github/workflows/binary.yml new file mode 100644 index 00000000..c28aaf3a --- /dev/null +++ b/.github/workflows/binary.yml @@ -0,0 +1,34 @@ +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check-out repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax + cache: 'pip' + cache-dependency-path: | + dockerfiles/requirements*.txt + + - name: Install Dependencies + run: | + pip install -r dockerfiles/requirements.txt + pip install pyinstaller + + - name: build + run: | + pyinstaller ./cmd/main.py + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + path: | + build/main/main \ No newline at end of file