add(ci): build binary
Some checks are pending
Build Binary / build (push) Waiting to run

This commit is contained in:
Aleksandr Tcitlionok
2024-12-11 13:06:27 +00:00
parent b031148f61
commit fb9dac921b

38
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,38 @@
name: Build Binary
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Build Binary
run: pyinstaller --onefile --name=metalcheck main.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: metalcheck-cli
path: dist/metalcheck