diff --git a/.github/publish_python.yml b/.github/publish_python.yml deleted file mode 100644 index 6658963..0000000 --- a/.github/publish_python.yml +++ /dev/null @@ -1,30 +0,0 @@ -on: - release: - types: [published] - -jobs: - build: - name: Build distribution 📦 - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Package distribution - run: | - cd python - python -m pip install --upgrade pip - pip install setuptools wheel - python setup.py sdist bdist_wheel - - - name: Publish distribution - uses: pypa/gh-action-pypi-publish@v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - package: python/dist/* - repository_url: https://upload.pypi.org/legacy/ diff --git a/.github/workflows/publish_python.yml b/.github/workflows/publish_python.yml new file mode 100644 index 0000000..905ca9f --- /dev/null +++ b/.github/workflows/publish_python.yml @@ -0,0 +1,30 @@ +on: + release: + types: [published] + +jobs: + build: + name: Build distribution 📦 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Package distribution + run: | + cd python + python -m pip install --upgrade pip + pip install setuptools wheel + python setup.py sdist bdist_wheel + + - name: Publish distribution + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + packages-dir: python/dist + repository-url: https://upload.pypi.org/legacy/