diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2923fd2c..995bd4e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,21 +11,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Set up Python 3.x + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: "3.x" - + python-version: "3.11" - name: Install release dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - + pip install build twine - name: Build and publish package env: TWINE_USERNAME: ${{ secrets.PYPI_STACUTILS_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_STACUTILS_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m build twine upload dist/*