aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2023-11-22 14:26:00 -0500
committerGitHub <noreply@github.com>2023-11-22 14:26:00 -0500
commit2721c529aa91119fc943d5af24ae75889163a75b (patch)
treea60fe9633ca53bea4e6b01d7a57ae2abbadccc62 /.github/workflows
parentGH-68: Update mslex to v1 (#69) (diff)
downloadtaskipy2-2721c529aa91119fc943d5af24ae75889163a75b.zip
Add release workflow on github release creation (#71)
* Add release workflow on github release creation * Run on 'published' instead of 'created' * Use poetry and tweak publish task
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..382fe98
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,24 @@
+name: Release Python Package
+
+on:
+ release:
+ types:
+ - published
+
+jobs:
+ release:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.12'
+ - name: Install dependencies
+ run: pip install setuptools==68.2.2 wheel==0.41.3 poetry==1.7.1
+ - name: Build and publish
+ run: |
+ poetry build
+ poetry publish
+ env:
+ POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}