From cf9c06504302f69f9341285c40caae88992dc480 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 15:01:53 -0700 Subject: [PATCH 01/17] temp --- .github/workflows/publish-to-pypi.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 62d0a39..7b6931b 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -41,17 +41,16 @@ jobs: - name: Publish distribution PyPI --dry-run if: ${{ github.event.inputs.dryRun == 'true'}} run: | - python -m pip install python-semantic-release==7.33.0 - semantic-release publish --noop + python -m pip install python-semantic-release==10.5.3 + semantic-release -vv version --no-commit --no-tag --no-push - name: Publish distribution PyPI if: ${{ github.event.inputs.dryRun == 'false'}} run: | - python -m pip install python-semantic-release==7.33.0 + python -m pip install python-semantic-release==10.5.3 git config user.name amplitude-sdk-bot git config user.email amplitude-sdk-bot@users.noreply.github.com semantic-release publish env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPOSITORY_USERNAME: __token__ - REPOSITORY_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} From 5ae943c00738c2a3ed20cf71c1f03f906894453b Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 15:09:27 -0700 Subject: [PATCH 02/17] fix: for dry-run only, revert me later From 82ac40467cff983fe6be1190f451428276f7662e Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 16:14:58 -0700 Subject: [PATCH 03/17] chore: upgrade semantic-release to v10 --- .github/workflows/publish-to-pypi.yml | 7 ++++ .github/workflows/publish-to-test-pypi.yml | 44 +++++++++++++++++----- pyproject.toml | 17 ++++----- 3 files changed, 49 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 7b6931b..31f59f3 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -24,6 +24,8 @@ jobs: name: Build and publish to PyPI runs-on: ubuntu-latest needs: [authorize] + permissions: + id-token: write steps: - name: Checkout for release to PyPI uses: actions/checkout@v3 @@ -54,3 +56,8 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPOSITORY_USERNAME: __token__ + + - name: Publish distribution PyPI + uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e + with: + user: __token__ diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 1bdcca0..e754dfb 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -1,6 +1,12 @@ -name: Publish to TestPyPI +name: Publish to PyPI -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + dryRun: + description: 'Do a dry run to preview instead of a real release' + required: true + default: 'true' jobs: authorize: @@ -15,26 +21,44 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} build-n-publish: - name: Build and publish to TestPyPI + name: Build and publish to PyPI runs-on: ubuntu-latest needs: [authorize] + permissions: + id-token: write steps: - - uses: actions/checkout@v3 + - name: Checkout for release to PyPI + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python 3.8 uses: actions/setup-python@v3 with: python-version: 3.8 - - name: Install dependencies - run: python -m pip install build setuptools wheel twine + - name: Run Test + run: python -m unittest discover -s ./src -p 'test_*.py' + + - name: Publish distribution PyPI --dry-run + if: ${{ github.event.inputs.dryRun == 'true'}} + run: | + python -m pip install "python-semantic-release>=10,<11" + semantic-release --noop -vv version --no-commit --no-tag --no-push - - name: Build a binary wheel and a source tarball - run: python -m build --sdist --wheel --outdir dist/ . + - name: Publish distribution Test PyPI + if: ${{ github.event.inputs.dryRun == 'false'}} + run: | + python -m pip install "python-semantic-release>=10,<11" + git config user.name amplitude-sdk-bot + git config user.email amplitude-sdk-bot@users.noreply.github.com + semantic-release publish + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPOSITORY_USERNAME: __token__ - name: Publish distribution Test PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e with: user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ diff --git a/pyproject.toml b/pyproject.toml index 466f2b4..a219d71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,13 @@ [tool.semantic_release] -version_variable = [ - "src/amplitude/constants.py:SDK_VERSION" -] major_on_zero = false -branch = "main" -upload_to_PyPI = true -upload_to_release = true build_command = "pip install build && python -m build" -version_source = "tag" -commit_version_number = true -commit_subject = "chore(release): Bump version to {version}" + +version_variables = [ + "src/amplitude/constants.py:SDK_VERSION" +] + commit_message = "chore(release): Bump version to {version}" commit_author = "amplitude-sdk-bot " + +[tool.semantic_release.publish] +upload_to_vcs_release = true From 3f359378c39a5aeed659e8b33d626ccdb905fcf4 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 17:11:26 -0700 Subject: [PATCH 04/17] again --- .github/workflows/publish-to-pypi.yml | 9 ++++----- .github/workflows/publish-to-test-pypi.yml | 23 +++------------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 31f59f3..61fe48e 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -32,10 +32,10 @@ jobs: with: fetch-depth: 0 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 - name: Run Test run: python -m unittest discover -s ./src -p 'test_*.py' @@ -46,7 +46,7 @@ jobs: python -m pip install python-semantic-release==10.5.3 semantic-release -vv version --no-commit --no-tag --no-push - - name: Publish distribution PyPI + - name: Publish distribution to VCS Release if: ${{ github.event.inputs.dryRun == 'false'}} run: | python -m pip install python-semantic-release==10.5.3 @@ -58,6 +58,5 @@ jobs: REPOSITORY_USERNAME: __token__ - name: Publish distribution PyPI + if: ${{ github.event.inputs.dryRun == 'false'}} uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e - with: - user: __token__ diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index e754dfb..1c82c45 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -3,10 +3,6 @@ name: Publish to PyPI on: workflow_dispatch: inputs: - dryRun: - description: 'Do a dry run to preview instead of a real release' - required: true - default: 'true' jobs: authorize: @@ -32,33 +28,20 @@ jobs: with: fetch-depth: 0 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.9 - name: Run Test run: python -m unittest discover -s ./src -p 'test_*.py' - - name: Publish distribution PyPI --dry-run - if: ${{ github.event.inputs.dryRun == 'true'}} + - name: Publish distribution to VCS (dry run) run: | python -m pip install "python-semantic-release>=10,<11" semantic-release --noop -vv version --no-commit --no-tag --no-push - - name: Publish distribution Test PyPI - if: ${{ github.event.inputs.dryRun == 'false'}} - run: | - python -m pip install "python-semantic-release>=10,<11" - git config user.name amplitude-sdk-bot - git config user.email amplitude-sdk-bot@users.noreply.github.com - semantic-release publish - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPOSITORY_USERNAME: __token__ - - name: Publish distribution Test PyPI uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e with: - user: __token__ repository_url: https://test.pypi.org/legacy/ From ca8755a0e2884f67b2000f863d66d186bca1eb0e Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 17:35:14 -0700 Subject: [PATCH 05/17] again --- .github/workflows/publish-to-pypi.yml | 4 ++-- .github/workflows/publish-to-test-pypi.yml | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 61fe48e..77ad9f6 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -44,7 +44,7 @@ jobs: if: ${{ github.event.inputs.dryRun == 'true'}} run: | python -m pip install python-semantic-release==10.5.3 - semantic-release -vv version --no-commit --no-tag --no-push + semantic-release -vv version --no-commit --no-tag --no-push --noop - name: Publish distribution to VCS Release if: ${{ github.event.inputs.dryRun == 'false'}} @@ -52,7 +52,7 @@ jobs: python -m pip install python-semantic-release==10.5.3 git config user.name amplitude-sdk-bot git config user.email amplitude-sdk-bot@users.noreply.github.com - semantic-release publish + semantic-release version env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPOSITORY_USERNAME: __token__ diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 1c82c45..bf41752 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -1,4 +1,4 @@ -name: Publish to PyPI +name: Publish to Test PyPI on: workflow_dispatch: @@ -38,9 +38,14 @@ jobs: - name: Publish distribution to VCS (dry run) run: | - python -m pip install "python-semantic-release>=10,<11" + python -m pip install python-semantic-release==10.5.3 semantic-release --noop -vv version --no-commit --no-tag --no-push + - name: Semantic release version + run: | + python -m pip install python-semantic-release==10.5.3 + semantic-release version + - name: Publish distribution Test PyPI uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e with: From 8913394e07a44c3ccf1d2249ee81533daed2c3fa Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 17:39:55 -0700 Subject: [PATCH 06/17] again --- .github/workflows/publish-to-pypi.yml | 1 + .github/workflows/publish-to-test-pypi.yml | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 77ad9f6..109b993 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -25,6 +25,7 @@ jobs: runs-on: ubuntu-latest needs: [authorize] permissions: + contents: write id-token: write steps: - name: Checkout for release to PyPI diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index bf41752..4cfd6a3 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -3,6 +3,10 @@ name: Publish to Test PyPI on: workflow_dispatch: inputs: + dryRun: + description: "Preview only (no version bump, no publish)" + required: true + default: "true" jobs: authorize: @@ -17,13 +21,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} build-n-publish: - name: Build and publish to PyPI + name: Build and publish to Test PyPI runs-on: ubuntu-latest needs: [authorize] permissions: + contents: write id-token: write steps: - - name: Checkout for release to PyPI + - name: Checkout for release to Test PyPI uses: actions/checkout@v3 with: fetch-depth: 0 @@ -36,17 +41,24 @@ jobs: - name: Run Test run: python -m unittest discover -s ./src -p 'test_*.py' - - name: Publish distribution to VCS (dry run) + - name: Semantic release (dry run) + if: ${{ github.event.inputs.dryRun == 'true' }} run: | python -m pip install python-semantic-release==10.5.3 - semantic-release --noop -vv version --no-commit --no-tag --no-push + semantic-release -vv version --no-commit --no-tag --no-push --noop - name: Semantic release version + if: ${{ github.event.inputs.dryRun == 'false' }} run: | python -m pip install python-semantic-release==10.5.3 + git config user.name amplitude-sdk-bot + git config user.email amplitude-sdk-bot@users.noreply.github.com semantic-release version + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish distribution Test PyPI + if: ${{ github.event.inputs.dryRun == 'false' }} uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e with: repository_url: https://test.pypi.org/legacy/ From 1a4f539ff43f47ebc38bde572441704f7caa4b00 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 17:44:02 -0700 Subject: [PATCH 07/17] again --- .github/workflows/publish-to-pypi.yml | 7 ++++--- .github/workflows/publish-to-test-pypi.yml | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 109b993..f6ebd95 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -38,19 +38,20 @@ jobs: with: python-version: 3.9 + - name: Install semantic release + run: python -m pip install python-semantic-release==10.5.3 + - name: Run Test run: python -m unittest discover -s ./src -p 'test_*.py' - name: Publish distribution PyPI --dry-run if: ${{ github.event.inputs.dryRun == 'true'}} - run: | - python -m pip install python-semantic-release==10.5.3 + run: | semantic-release -vv version --no-commit --no-tag --no-push --noop - name: Publish distribution to VCS Release if: ${{ github.event.inputs.dryRun == 'false'}} run: | - python -m pip install python-semantic-release==10.5.3 git config user.name amplitude-sdk-bot git config user.email amplitude-sdk-bot@users.noreply.github.com semantic-release version diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 4cfd6a3..c4fa528 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -41,16 +41,17 @@ jobs: - name: Run Test run: python -m unittest discover -s ./src -p 'test_*.py' + - name: Install semantic release + run: python -m pip install python-semantic-release==10.5.3 + - name: Semantic release (dry run) if: ${{ github.event.inputs.dryRun == 'true' }} run: | - python -m pip install python-semantic-release==10.5.3 semantic-release -vv version --no-commit --no-tag --no-push --noop - name: Semantic release version if: ${{ github.event.inputs.dryRun == 'false' }} run: | - python -m pip install python-semantic-release==10.5.3 git config user.name amplitude-sdk-bot git config user.email amplitude-sdk-bot@users.noreply.github.com semantic-release version From bf38c7586e6e4ef116cb78ac96b340af69559556 Mon Sep 17 00:00:00 2001 From: amplitude-sdk-bot Date: Mon, 30 Mar 2026 17:58:44 -0700 Subject: [PATCH 08/17] chore(release): Bump version to 1.2.3 --- src/amplitude/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amplitude/constants.py b/src/amplitude/constants.py index 77f612b..75b72ad 100644 --- a/src/amplitude/constants.py +++ b/src/amplitude/constants.py @@ -1,7 +1,7 @@ from enum import Enum SDK_LIBRARY = "amplitude-python" -SDK_VERSION = "1.2.2" +SDK_VERSION = "1.2.3" EU_ZONE = "EU" DEFAULT_ZONE = "US" From 9c7f86262917a316309f4804dd2027ce7ab39544 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:01:13 -0700 Subject: [PATCH 09/17] again --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a219d71..c6b312c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,15 @@ [tool.semantic_release] major_on_zero = false build_command = "pip install build && python -m build" - version_variables = [ "src/amplitude/constants.py:SDK_VERSION" ] - commit_message = "chore(release): Bump version to {version}" commit_author = "amplitude-sdk-bot " +[tool.semantic_release.branches.main] +match = "(main|master)" +prerelease = false + [tool.semantic_release.publish] upload_to_vcs_release = true From c204923e94f789f6120c1773062f0aa05a44dd20 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:02:07 -0700 Subject: [PATCH 10/17] again --- .github/workflows/publish-to-pypi.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index f6ebd95..293136e 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -57,7 +57,6 @@ jobs: semantic-release version env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPOSITORY_USERNAME: __token__ - name: Publish distribution PyPI if: ${{ github.event.inputs.dryRun == 'false'}} From 9ef2223aeb2fae6295a0dc293789f811ea0a1f55 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:03:29 -0700 Subject: [PATCH 11/17] again --- src/amplitude/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amplitude/constants.py b/src/amplitude/constants.py index 75b72ad..77f612b 100644 --- a/src/amplitude/constants.py +++ b/src/amplitude/constants.py @@ -1,7 +1,7 @@ from enum import Enum SDK_LIBRARY = "amplitude-python" -SDK_VERSION = "1.2.3" +SDK_VERSION = "1.2.2" EU_ZONE = "EU" DEFAULT_ZONE = "US" From fc6da14f18b4ee543e13685eaab42d86ec650cbe Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:07:33 -0700 Subject: [PATCH 12/17] again --- .github/workflows/publish-to-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 293136e..9aaca2e 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -47,7 +47,7 @@ jobs: - name: Publish distribution PyPI --dry-run if: ${{ github.event.inputs.dryRun == 'true'}} run: | - semantic-release -vv version --no-commit --no-tag --no-push --noop + semantic-release -vv version --no-commit --no-tag --no-push - name: Publish distribution to VCS Release if: ${{ github.event.inputs.dryRun == 'false'}} From e7dada64e23b14787c53021ccc4513944d4db52b Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:47:20 -0700 Subject: [PATCH 13/17] again --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c6b312c..35b4c64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,8 @@ commit_message = "chore(release): Bump version to {version}" commit_author = "amplitude-sdk-bot " [tool.semantic_release.branches.main] -match = "(main|master)" +# TEMPORARY... remove AMP-151270 before merging!!! +match = "(main|master|AMP-151270-upgrade-semantic-release)" prerelease = false [tool.semantic_release.publish] From d3d1c0b8d4e807524a8a30bf95d779a09e6780db Mon Sep 17 00:00:00 2001 From: amplitude-sdk-bot Date: Tue, 31 Mar 2026 01:48:47 +0000 Subject: [PATCH 14/17] chore(release): Bump version to 1.2.3 --- src/amplitude/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amplitude/constants.py b/src/amplitude/constants.py index 77f612b..75b72ad 100644 --- a/src/amplitude/constants.py +++ b/src/amplitude/constants.py @@ -1,7 +1,7 @@ from enum import Enum SDK_LIBRARY = "amplitude-python" -SDK_VERSION = "1.2.2" +SDK_VERSION = "1.2.3" EU_ZONE = "EU" DEFAULT_ZONE = "US" From 96d6bcd20b82d84add761ad2159c97d0401c53c6 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:49:32 -0700 Subject: [PATCH 15/17] again --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 35b4c64..c6b312c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,7 @@ commit_message = "chore(release): Bump version to {version}" commit_author = "amplitude-sdk-bot " [tool.semantic_release.branches.main] -# TEMPORARY... remove AMP-151270 before merging!!! -match = "(main|master|AMP-151270-upgrade-semantic-release)" +match = "(main|master)" prerelease = false [tool.semantic_release.publish] From f8d7b5c5ed92355d3837e85a5c9eed13f8aaa7c4 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:53:54 -0700 Subject: [PATCH 16/17] again --- src/amplitude/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amplitude/constants.py b/src/amplitude/constants.py index 75b72ad..77f612b 100644 --- a/src/amplitude/constants.py +++ b/src/amplitude/constants.py @@ -1,7 +1,7 @@ from enum import Enum SDK_LIBRARY = "amplitude-python" -SDK_VERSION = "1.2.3" +SDK_VERSION = "1.2.2" EU_ZONE = "EU" DEFAULT_ZONE = "US" From 78b5c84f31f1ca7d045d8e24c440b8fff85ba2ff Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Mon, 30 Mar 2026 18:57:36 -0700 Subject: [PATCH 17/17] again --- .github/workflows/publish-to-pypi.yml | 4 ++-- .github/workflows/publish-to-test-pypi.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 9aaca2e..f190d83 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -44,9 +44,9 @@ jobs: - name: Run Test run: python -m unittest discover -s ./src -p 'test_*.py' - - name: Publish distribution PyPI --dry-run + - name: Publish distribution to VCS Release (dry run) if: ${{ github.event.inputs.dryRun == 'true'}} - run: | + run: | semantic-release -vv version --no-commit --no-tag --no-push - name: Publish distribution to VCS Release diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index c4fa528..8894357 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -38,23 +38,23 @@ jobs: with: python-version: 3.9 - - name: Run Test - run: python -m unittest discover -s ./src -p 'test_*.py' - - name: Install semantic release run: python -m pip install python-semantic-release==10.5.3 - - name: Semantic release (dry run) + - name: Run Test + run: python -m unittest discover -s ./src -p 'test_*.py' + + - name: Publish distribution to VCS Release (dry run) if: ${{ github.event.inputs.dryRun == 'true' }} run: | semantic-release -vv version --no-commit --no-tag --no-push --noop - - name: Semantic release version + - name: Publish distribution to VCS Release if: ${{ github.event.inputs.dryRun == 'false' }} run: | git config user.name amplitude-sdk-bot git config user.email amplitude-sdk-bot@users.noreply.github.com - semantic-release version + semantic-release version --no-push env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}