From 2721c529aa91119fc943d5af24ae75889163a75b Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Wed, 22 Nov 2023 14:26:00 -0500 Subject: 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 --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release.yml (limited to '.github/workflows') 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 }} -- cgit v1.2.3