diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfc26e7..236d6b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,8 +129,6 @@ jobs: runs-on: ubuntu-latest needs: - "tests" - # only if a tag is pushed - if: startsWith(github.event.ref, 'refs/tags/v') steps: - uses: actions/checkout@master - name: Set up Python @@ -138,12 +136,17 @@ jobs: with: python-version: ${{ env.LAST_SUPPORTED_PYTHON }} + - name: Install dev dependencies + run: pip install -r "requirements/dev.pip" + - name: Build distribution _wheel_. run: | ./bin/package.sh - name: Publish distribution 📦 to PyPI. uses: pypa/gh-action-pypi-publish@release/v1 + # Push to PyPi only if a tag is pushed + if: startsWith(github.event.ref, 'refs/tags/v') with: password: ${{ secrets.PYPI_API_TOKEN }} print-hash: true diff --git a/bin/package.sh b/bin/package.sh index 5646471..ac5d390 100755 --- a/bin/package.sh +++ b/bin/package.sh @@ -6,4 +6,4 @@ my_dir=`dirname "$0"` cd $my_dir/.. rm -r build/* dist/* || echo "no build/* or dist/* folder is found" -python3 setup.py bdist_wheel sdist +python3 -m build