diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b0c1755d..81c0a33e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -43,3 +43,23 @@ jobs: path: dist/*.whl retention-days: 30 + release: + needs: [ build ] + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: wheel-file + path: dist + + - name: Create and Upload Release + id: create_release + uses: softprops/action-gh-release@v1 + with: + files: './dist/*.whl' + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} \ No newline at end of file diff --git a/setup.py b/setup.py index 521e1069..ce51306a 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ requires = parse_requirements('requirements.txt') setup( name="magic_pdf", # 项目名 - version="0.1.0", # 版本号 + version="0.1.1", # 版本号 packages=find_packages(), # 包含所有的包 install_requires=requires, # 项目依赖的第三方库 python_requires=">=3.9", # 项目依赖的 Python 版本