diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index b2a248d..4ab91bc 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -26,6 +26,7 @@ jobs: env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + RELEASE: 1 run: | python -m pip install --upgrade build twine setuptools wheel python setup.py sdist bdist_wheel diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b986e2d..ff255c9 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,24 +10,31 @@ on: - cron: "59 22 * * *" jobs: - deploy: - + build-n-publish: + name: Build and publish to PyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.TMNT_API_USERNAME }} - TWINE_PASSWORD: ${{ secrets.TMNT_API_KEY }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + - name: Checkout source + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + + - name: Build source and wheel distributions + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + python -m pip install --upgrade build twine setuptools wheel + python setup.py sdist bdist_wheel + twine upload dist/* + twine check --strict dist/* + - name: Publish distribution to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + diff --git a/README.md b/README.md index 1da9a3f..cb6717a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ The Topic Modeling Neural Toolkit (TMNT) is a software library that enables training topic models as neural network-based variational auto-encoders. -Current stable version is: 0.7.04 +Current stable version is: 0.7.41 Documentation can be found here: https://tmnt.readthedocs.io/en/stable/ diff --git a/setup.py b/setup.py index ee83302..99b3d29 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools.command.install import install from pathlib import Path -version = '0.7.04' +version = '0.7.41' try: if not os.getenv('RELEASE'):