diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..027eef04 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Upload to PyPI + +on: + release: + types: [published] + +jobs: + Upload: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup python + uses: actions/setup-python@v2 + + - name: Build wheel and source tarball + run: | + python setup.py sdist + + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_COSMOSIS_UPLOAD }} diff --git a/cosmosis/version.py b/cosmosis/version.py index dd9570a8..2dda8e8e 100644 --- a/cosmosis/version.py +++ b/cosmosis/version.py @@ -1 +1 @@ -__version__ = '0.5.12' +__version__ = '0.5.13'