Skip to content

* update JadeV2.3.9 #148

* update JadeV2.3.9

* update JadeV2.3.9 #148

Workflow file for this run

name: jade库打包
on:
push:
tags:
- JadeV*
jobs:
release:
name: ${{ matrix.os }} 创建Release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ] #, "macos-latest", "windows-latest"
steps:
- name: 克隆代码
uses: actions/checkout@v3
- name: 创建发行版本
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: CONTRIBUTING.md
draft: false
prerelease: false
build:
name: Python制作Wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 安装Python环境
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: 安装依赖
run: |
python -m pip install --upgrade pip
pip install wheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: 打包
run: |
python setup.py sdist bdist_wheel
rm -r build
rm -r *.egg-info
ls
## 发布
- name: 发布
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "dist/*.whl"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}