diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..47819798 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +# Publish to PyPI in case of releasing + +on: + push: + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install pypa/build + run: | + python -m pip install build --user + - name: Build a binary wheel and a source tarball + run: | + python -m build --sdist --wheel --outdir dist/ . + - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.SECRETS_TEST_PYPI_API_TOKEN }} \ No newline at end of file diff --git a/VERSION.md b/VERSION.md index 23aa8390..0495c4a8 100644 --- a/VERSION.md +++ b/VERSION.md @@ -1 +1 @@ -1.2.2 +1.2.3