diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index cebd7f5..63ff109 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -1,4 +1,4 @@ -name: Publish release on TestPypi +name: Publish pre-release on TestPyPI on: push: @@ -20,13 +20,13 @@ jobs: with: python-version: "3.10" - - name: build release distributions + - name: Build release distributions run: | python -m pip install --upgrade pip pip install build python -m build - - name: upload windows dists + - name: Upload distributions uses: actions/upload-artifact@v4 with: name: release-dists @@ -34,8 +34,8 @@ jobs: test-pypi-publish: runs-on: ubuntu-latest - needs: - - pre-release-build + needs: pre-release-build + if: github.event_name == 'release' && github.event.action == 'prereleased' permissions: id-token: write diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 07600bd..b23f0e6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: Publish release on TestPypi +name: Publish release on: push: @@ -20,13 +20,13 @@ jobs: with: python-version: "3.10" - - name: build release distributions + - name: Build release distributions run: | python -m pip install --upgrade pip pip install build python -m build - - name: upload windows dists + - name: Upload distributions uses: actions/upload-artifact@v4 with: name: release-dists @@ -34,8 +34,8 @@ jobs: pypi-publish: runs-on: ubuntu-latest - needs: - - release-build + needs: release-build + if: github.event_name == 'release' && github.event.action == 'published' permissions: id-token: write @@ -51,8 +51,8 @@ jobs: test-pypi-publish: runs-on: ubuntu-latest - needs: - - release-build + needs: release-build + if: github.event_name == 'release' && github.event.action == 'published' permissions: id-token: write diff --git a/pyproject.toml b/pyproject.toml index f23c1f6..7f14b42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", ] -version = "1.2.3" +version = "1.2.4" requires-python = ">=3.10" dependencies = [ "requests>=2.32, < 3",