aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release-deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release-deploy.yml')
-rw-r--r--.github/workflows/release-deploy.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/release-deploy.yml b/.github/workflows/release-deploy.yml
new file mode 100644
index 0000000..41f4369
--- /dev/null
+++ b/.github/workflows/release-deploy.yml
@@ -0,0 +1,34 @@
+name: release-deploy
+
+on:
+ release:
+ types: [ published ]
+
+jobs:
+
+ deploy:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: true
+ matrix:
+ python-version: [ '3.10' ]
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Build package
+ run: |
+ python -m pip install --upgrade pip
+ python -m pip install build
+ python -m build
+
+ - name: Publish package to PyPI
+ uses: pypa/gh-action-pypi-publish@release/v1
+ with:
+ user: __token__
+ password: ${{ secrets.PYPI_TOKEN }}