From ea69db0ac22fda7c4d9319daff9a30e02e1bf9ae Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Tue, 19 Jan 2021 13:34:22 +0100 Subject: [PATCH] add pypi publishing action --- .github/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..5727628 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,34 @@ +name: Release to PyPI + +on: + release: + types: [published] + tags-ignore: + - '**dev**' + - '**rc**' + + +jobs: + build: + name: Build dist & publish + runs-on: ubuntu-20.04 + + steps: + - name: Checkout the repo and the submodules. + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.9' + + - name: Install build dependencies & build + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + python setup.py sdist bdist_wheel + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@v1.3.1 + with: + user: __token__ + password: ${{ secrets.PYPI }}