diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 5f0f654..c7c343f 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -59,14 +59,31 @@ jobs: name: Upload release to PyPI needs: [build_wheel] runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/AMBER_ds4ms - permissions: - id-token: ${{secrets.PYPI_TOKEN}} # IMPORTANT: this permission is mandatory for trusted publishing + strategy: + matrix: + python-version: [3.13.3] steps: - # retrieve your distributions here + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install twine + - name: Upload + run: | + twine upload --username __token__ --password ${{secrets.PYPI_TOKEN}} --repository https://upload.pypi.org/legacy/ dist/* - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 +# environment: +# name: pypi +# url: https://pypi.org/p/AMBER_ds4ms +# permissions: +# id-token: ${{secrets.PYPI_TOKEN}} # IMPORTANT: this permission is mandatory for trusted publishing +# steps: +# # retrieve your distributions here +# +# - name: Publish package distributions to PyPI +# uses: pypa/gh-action-pypi-publish@release/v1