1
0
Fork 0
mirror of https://gitee.com/fantix/kloop.git synced 2024-04-25 17:58:45 +00:00

Add GitHub Action to build

This commit is contained in:
Fantix King 2022-06-15 20:01:20 -04:00
parent a8f639fdce
commit 08d3d8ff9a
No known key found for this signature in database
GPG key ID: 95304B04071CCDB4

32
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: 构建
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: 获取源代码
uses: actions/checkout@v3
- name: 安装 Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: 安装依赖关系
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: 构建软件包
run: python -m build
- name: 上传源码包
uses: actions/upload-artifact@v3
with:
name: kLoop 源码包
path: dist/*.tar.gz
- name: 上传 wheel 安装包
uses: actions/upload-artifact@v3
with:
name: kLoop wheel 安装包
path: dist/*.whl