From 8d02b5046e5e8a251e2eae6f7b68dcd62ab01cd8 Mon Sep 17 00:00:00 2001 From: Villu Ruusmann Date: Sun, 15 Dec 2024 14:50:58 +0200 Subject: [PATCH] Updated GitHub Actions CI configuration. HT: David Hotham. Fixes #437 --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b96c3b8 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: publish + +on: + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + - run: | + python -m pip install --upgrade pip + pip install build twine + - run: | + python -m build + - run: | + twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}