diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml new file mode 100644 index 0000000..588d5ea --- /dev/null +++ b/.github/workflows/pypi.yaml @@ -0,0 +1,31 @@ +name: Publish to PyPI on Tag + +on: + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Build and publish to PyPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} + run: | + python setup.py sdist bdist_wheel + python -m pip install --upgrade twine + twine upload dist/* diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7f25e6f..5ff2e34 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,10 @@ Changelog ================================================= +0.9.2 (9/18/2023) +----------------- +* automatic updating of pypi using github workflow + 0.9.1 (9/18/2023) ----------------- * include test files in tarball diff --git a/pypolar/__init__.py b/pypolar/__init__.py index 7cbc34d..3587002 100644 --- a/pypolar/__init__.py +++ b/pypolar/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.9.1' +__version__ = '0.9.2' __author__ = 'Scott Prahl' __email__ = 'scott.prahl@oit.edu' __copyright__ = 'Copyright 2020-23, Scott Prahl'