summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2022-02-24 11:20:26 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2022-02-24 11:21:00 +0200
commitf126487097b0ccb234e0c11e72a397716f3578d3 (patch)
tree62d95d18a6c3480ea590de71d108b9ed8b6ea18c
parentf2acba1735ac95a19ba9bc508c92f72f761e1cc5 (diff)
downloadapscheduler-3.9.0.post1.tar.gz
Added the publish workflow3.9.0.post1
-rw-r--r--.github/workflows/publish.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..8995e20
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,28 @@
+name: Publish packages to PyPI
+
+on:
+ push:
+ tags:
+ - "[0-9]+.[0-9]+.[0-9]+"
+ - "[0-9]+.[0-9]+.[0-9].post[0-9]+"
+ - "[0-9]+.[0-9]+.[0-9][a-b][0-9]+"
+ - "[0-9]+.[0-9]+.[0-9]rc[0-9]+"
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.x
+ - name: Install dependencies
+ run: pip install build
+ - name: Create packages
+ run: python -m build -s -w .
+ - name: Upload packages
+ uses: pypa/gh-action-pypi-publish@v1.1.0
+ with:
+ user: __token__
+ password: ${{ secrets.pypi_password }}