Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit fd61221

Browse files
authored
binary builder
1 parent 41a6541 commit fd61221

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CHDB CLI Builder
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
TAG_NAME:
7+
description: 'Release Version Tag'
8+
required: true
9+
release:
10+
types: [created]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.10"
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip pyinstaller
24+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25+
- name: Build Binary
26+
run: |
27+
pyinstaller chdb-cli.py --strip --noupx
28+
- name: Upload release
29+
if: github.event_name != 'pull_request'
30+
uses: boxpositron/[email protected]
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
release_config: |
35+
./dist/chdb-cli/chdb-cli
36+
tag_name: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
37+
release_name: chdbcli_v${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
38+
draft: false
39+
prerelease: false
40+
overwrite: true
41+

0 commit comments

Comments
 (0)