diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index e696d4ea..eaea4173 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -67,10 +67,19 @@ jobs: name: pypi url: https://pypi.org/p/carl-bench steps: - - name: Build - run: $PYTHON setup.py sdist + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.pypi_api_token }} + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.pypi_api_token }}