From d0174e43ea6a611935bd5e42bcc9858ed4f7a79c Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Tue, 28 Nov 2023 19:52:32 +0800 Subject: [PATCH] fix --- .github/workflows/main.yml | 4 ---- .github/workflows/release.yml | 7 ++++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4303686..4d2cc25 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,10 +55,6 @@ jobs: id: full-python-version run: echo version=$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))") >> $GITHUB_OUTPUT - - name: Bootstrap poetry - run: | - curl -sSL https://install.python-poetry.org | python - -y - - name: Update PATH if: ${{ matrix.os != 'Windows' }} run: echo "$HOME/.local/bin" >> $GITHUB_PATH diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32019ba..93c9d8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,12 @@ # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI -on: push + +on: + push: + tags: + - '*.*.*' + jobs: Release: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI