Skip to content

ronen4822

ronen4822 #51

Workflow file for this run

name: Build CIY Server Installer
run-name: ${{ github.actor }}
on:
push:
branches:
- main
- 'releases/**'
jobs:
build-and-upload-package:
runs-on: [self-hosted, linux]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
architecture: 'x64'
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel twine
- name: Build package
run: python setup.py install
- name: Install nuitka
run: pip install nuitka
- name: Install patchelf
run: apt install patchelf gcc -y
- name: Build binary
run: nuitka3 --onefile --include-data-dir=./cluster_server_installer/resources=cluster_server_installer/resources cluster_server_installer/main.py
- name: Upload to gitlab
run: |
PACKAGE_VERSION=1.0.2
PACKAGE_REGISTRY_URL="https://gitlab.com/api/v4/projects/54080196/packages/generic/ciy-server-installer/$PACKAGE_VERSION"
curl --header "PRIVATE-TOKEN: glpat-3zqVQwKxwU_Qsvc_8fw8" --upload-file main.bin $PACKAGE_REGISTRY_URL/ciy-server-installer-$PACKAGE_VERSION.bin