From 4a667fec6ad82d53121f972c7bfd448dac0fcde8 Mon Sep 17 00:00:00 2001 From: raylu <90059+raylu@users.noreply.github.com> Date: Thu, 25 Apr 2024 20:39:53 -0700 Subject: [PATCH] test pypi upload --- .github/workflows/pypi.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pypi.yaml diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml new file mode 100644 index 0000000..a85c289 --- /dev/null +++ b/.github/workflows/pypi.yaml @@ -0,0 +1,32 @@ +name: PyPI publish + +on: + push: + branches: '*' + release: + types: [created] + workflow_dispatch: + +jobs: + pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Build package + run: mv dool dool.py && python -m build + + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + env: + name: test-pypi + url: https://test.pypi.org/p/dool