diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 46bdf3d3..52a93f97 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -92,8 +92,11 @@ jobs: - run: | pip install wheel python setup.py sdist bdist_wheel + - uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.test_pypi_password }} + repository_url: https://test.pypi.org/legacy/ - uses: pypa/gh-action-pypi-publish@master if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') with: password: ${{ secrets.pypi_password }} - repository_url: https://test.pypi.org/legacy/ diff --git a/.travis.yml b/.travis.yml index c67d1c89..4f566dcb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -88,21 +88,21 @@ branches: - /^v.*$/ # Whenever a new release is created via GitHub, publish it on PyPI. -#deploy: -# provider: pypi -# user: the_drow -# password: -# secure: QMyatmWBnC6ZN3XLW2+fTBDU4LQcp1m/LjR2/0uamyeUzWKdlOoh/Wx5elOgLwt/8N9ppdPeG83ose1jOz69l5G0MUMjv8n/RIcMFSpCT59tGYqn3kh55b0cIZXFT9ar+5cxlif6a5rS72IHm5li7QQyxexJIII6Uxp0kpvUmek= -# -# # Create a source distribution and a pure python wheel for faster installs. -# distributions: "sdist bdist_wheel" -# -# # Only deploy on tagged commits (aka GitHub releases) and only for the parent -# # repo's builds running Python v3.7 along with PyMongo v3.x and MongoDB v3.4. -# # We run Travis against many different Python, PyMongo, and MongoDB versions -# # and we don't want the deploy to occur multiple times). -# on: -# tags: true -# repo: MongoEngine/mongoengine -# condition: ($PYMONGO = ${PYMONGO_3_11}) && ($MONGODB = ${MONGODB_3_4}) -# python: 3.7 +deploy: + provider: pypi + user: the_drow + password: + secure: QMyatmWBnC6ZN3XLW2+fTBDU4LQcp1m/LjR2/0uamyeUzWKdlOoh/Wx5elOgLwt/8N9ppdPeG83ose1jOz69l5G0MUMjv8n/RIcMFSpCT59tGYqn3kh55b0cIZXFT9ar+5cxlif6a5rS72IHm5li7QQyxexJIII6Uxp0kpvUmek= + + # Create a source distribution and a pure python wheel for faster installs. + distributions: "sdist bdist_wheel" + + # Only deploy on tagged commits (aka GitHub releases) and only for the parent + # repo's builds running Python v3.7 along with PyMongo v3.x and MongoDB v3.4. + # We run Travis against many different Python, PyMongo, and MongoDB versions + # and we don't want the deploy to occur multiple times). + on: + tags: true + repo: MongoEngine/mongoengine + condition: ($PYMONGO = ${PYMONGO_3_11}) && ($MONGODB = ${MONGODB_3_4}) + python: 3.7