diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index e8b00eb12..5bc1f9b95 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -12,6 +12,9 @@ jobs: publish: name: publish runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v6 @@ -24,5 +27,3 @@ jobs: - name: Publish to PyPI run: | bash ./bin/publish-pypi - env: - PYPI_TOKEN: ${{ secrets.SENT_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 747e6ced6..94692f5bd 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -17,5 +17,3 @@ jobs: - name: Check release environment run: | bash ./bin/check-release-environment - env: - PYPI_TOKEN: ${{ secrets.SENT_PYPI_TOKEN || secrets.PYPI_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7f3f5c846..d2d60a3df 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.23.0" + ".": "0.24.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 0af75e781..3cf31c522 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 40 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-70add89bcfb89bfdc6afc102ad2e7e8f82986ff59bcf24cb79d39a6e8cb35744.yml -openapi_spec_hash: 23c14ebd1e6fb7ee4cfda8938f61bc92 -config_hash: 8bc6d28d291ed9164b9a1ac9ca036348 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-fab860f6905714bbdd944d5c7ad453fe4fdc76207f59ac252122fcad550954b4.yml +openapi_spec_hash: c26bcf7b64c1813f74da23346ee0e36a +config_hash: 7fe4b7f38470a511342b783de698aa99 diff --git a/CHANGELOG.md b/CHANGELOG.md index 114a98cff..7f0cccbd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.24.0 (2026-04-29) + +Full Changelog: [v0.23.0...v0.24.0](https://github.com/sentdm/sent-dm-python/compare/v0.23.0...v0.24.0) + +### Features + +* **api:** manual updates ([3e3101a](https://github.com/sentdm/sent-dm-python/commit/3e3101addb74c439380e6e103fb854369f8d3a7f)) + ## 0.23.0 (2026-04-29) Full Changelog: [v0.22.0...v0.23.0](https://github.com/sentdm/sent-dm-python/compare/v0.22.0...v0.23.0) diff --git a/bin/check-release-environment b/bin/check-release-environment index b845b0f4c..1e951e9ac 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,10 +2,6 @@ errors=() -if [ -z "${PYPI_TOKEN}" ]; then - errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.") -fi - lenErrors=${#errors[@]} if [[ lenErrors -gt 0 ]]; then diff --git a/bin/publish-pypi b/bin/publish-pypi index e72ca2fa4..589570044 100644 --- a/bin/publish-pypi +++ b/bin/publish-pypi @@ -4,4 +4,8 @@ set -eux rm -rf dist mkdir -p dist uv build -uv publish --token=$PYPI_TOKEN +if [ -n "${PYPI_TOKEN:-}" ]; then + uv publish --token=$PYPI_TOKEN +else + uv publish +fi diff --git a/pyproject.toml b/pyproject.toml index 552338b06..9ee1b751d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sentdm" -version = "0.23.0" +version = "0.24.0" description = "The official Python library for the Sent API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/sent_dm/_version.py b/src/sent_dm/_version.py index edb706c81..c417ec732 100644 --- a/src/sent_dm/_version.py +++ b/src/sent_dm/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "sent_dm" -__version__ = "0.23.0" # x-release-please-version +__version__ = "0.24.0" # x-release-please-version