From 0129dfa093d3fc9eeef63c75b0263f52975b8e68 Mon Sep 17 00:00:00 2001 From: shaowu Date: Tue, 20 Feb 2024 13:43:21 -0500 Subject: [PATCH] add --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ccb0cc6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release +on: + release: + types: + - published + +jobs: + release: + name: Deploy release to PyPI + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.10.13 + - name: Install dependencies + run: pip install wheel build + - name: Build package + run: python setup.py sdist bdist_wheel + - name: Upload package + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file