diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..e72a8c0 --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,26 @@ +name: pypi-publish +on: + # https://docs.github.com/cn/actions/using-workflows/events-that-trigger-workflows#release + release: + types: [published] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + - name: set up Python3.9 + uses: actions/setup-python@v1 + with: + python-version: 3.9 + - name: install pypa/build + run: >- + python -m pip install build --user + - name: build + run: >- + python -m build --sdist --wheel --outdir dist/ . + - name: publish + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index f27686e..55f9eea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "django-quanttide" -version = "0.1.0-alpha.1" +version = "0.1.0-beta.1" description = "量潮Django SDK" authors = ["QuantTide Inc. "] license = "Apache 2.0"