From f544a21107e5a0fdbb0fd1bacda06db0895a4f2b Mon Sep 17 00:00:00 2001 From: Ou Ku Date: Tue, 7 Nov 2023 12:07:04 +0100 Subject: [PATCH] add pypi action --- .github/workflows/pypi.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..f663a54 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,25 @@ +name: Publish + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install build + python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file