diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index e6f9e897..f9af835d 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -10,16 +10,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install Poetry - run: pipx install poetry - - name: Add PyPi token to Poetry - run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.11 - cache: "poetry" - - name: Install Dependencies - run: poetry install - - name: Publish package - run: poetry publish --build + python-version: '3.8' + cache: "pipenv" + - name: Check release validity + run: sh .github/scripts/check-release.sh + - name: Install pipenv + run: pipx install pipenv + - name: Install dependencies + run: | + pipenv install + pipenv run pip3 install build setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: "pypi-${{ secrets.PYPI_API_TOKEN }}" + run: | + pipenv run python3 -m build + pipenv run twine upload dist/*