From 0ec9b5026f6a4942a183f31fc70ae069b574856f Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 14:16:48 +0000 Subject: [PATCH 01/10] wip: actions to publish to pypi --- .github/workflows/publish-cli-to-pypi.yaml | 59 +++++++++++++++++++ .../workflows/publish-cli-to-testpypi.yaml | 35 +++++++++++ cli/casp/pyproject.toml | 4 +- cli/casp/test.sh | 6 ++ 4 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-cli-to-pypi.yaml create mode 100644 .github/workflows/publish-cli-to-testpypi.yaml create mode 100755 cli/casp/test.sh diff --git a/.github/workflows/publish-cli-to-pypi.yaml b/.github/workflows/publish-cli-to-pypi.yaml new file mode 100644 index 00000000000..42ac1876cf2 --- /dev/null +++ b/.github/workflows/publish-cli-to-pypi.yaml @@ -0,0 +1,59 @@ +name: Publish Casp CLI to PyPI + +on: + release: + types: [published] + +jobs: + publish-pypi: + name: Build and Publish CLI + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Check for changes in cli/casp + id: check_changes + run: | + PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || true) + + if [ -z "$PREV_TAG" ]; then + echo "No previous tag found (likely first release). Publishing..." + echo "changed=true" >> "$GITHUB_OUTPUT" + else + echo "Previous release tag found: $PREV_TAG" + + if git diff --quiet "$PREV_TAG" HEAD -- cli/casp; then + echo "No changes detected in cli/casp." + echo "changed=false" >> "$GITHUB_OUTPUT" + else + echo "Changes detected in cli/casp." + echo "changed=true" >> "$GITHUB_OUTPUT" + fi + fi + + - name: Set up Python + if: steps.check_changes.outputs.changed == 'true' + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install build dependencies + if: steps.check_changes.outputs.changed == 'true' + run: python -m pip install build --user + + - name: Build package + if: steps.check_changes.outputs.changed == 'true' + working-directory: cli/casp + run: python -m build + + - name: Publish to PyPI + if: steps.check_changes.outputs.changed == 'true' + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} + packages_dir: cli/casp/dist/ + skip_existing: true \ No newline at end of file diff --git a/.github/workflows/publish-cli-to-testpypi.yaml b/.github/workflows/publish-cli-to-testpypi.yaml new file mode 100644 index 00000000000..c99f0256132 --- /dev/null +++ b/.github/workflows/publish-cli-to-testpypi.yaml @@ -0,0 +1,35 @@ +name: Publish Casp CLI to TestPyPI + +on: + pull_request: + types: [opened, synchronize, reopened] + paths: + - 'cli/casp/**' + +jobs: + publish-testpypi: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install build dependencies + run: python -m pip install build --user + + - name: Build package + working-directory: cli/casp + run: python -m build + + - name: Publish to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository-url: https://test.pypi.org/legacy/ + packages_dir: cli/casp/dist/ + skip_existing: true \ No newline at end of file diff --git a/cli/casp/pyproject.toml b/cli/casp/pyproject.toml index bc4121be6b1..f0df425c2ca 100644 --- a/cli/casp/pyproject.toml +++ b/cli/casp/pyproject.toml @@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta" [project] name = "casp" -version = "0.0.8" +version = "2.17.0.1764252874" authors = [ { name="PauloVLB", email="paulovlb@google.com" }, ] description = "A new, modern Command-Line Interface (CLI) for ClusterFuzz." readme = "README.md" license = "Apache-2.0" -requires-python = ">=3.6" +requires-python = ">=3.11" classifiers = [ "Programming Language :: Python :: 3", "Operating System :: OS Independent", diff --git a/cli/casp/test.sh b/cli/casp/test.sh new file mode 100755 index 00000000000..89f7b42d3dc --- /dev/null +++ b/cli/casp/test.sh @@ -0,0 +1,6 @@ +LAST_TAG=$(git describe --tags --abbrev=0) +VERSION=${LAST_TAG#v} +TIMESTAMP=$(date +%s) + +# Set version to . (e.g., 1.0.0.1701234567) +sed -i "s/^version = \".*\"/version = \"$VERSION.$TIMESTAMP\"/" pyproject.toml \ No newline at end of file From a88ccf28f16fbc098c73b880983e392b35070361 Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 14:19:36 +0000 Subject: [PATCH 02/10] wip: testing the publish action --- .github/workflows/publish-cli-to-pypi.yaml | 116 ++++++++++----------- cli/casp/pyproject.toml | 2 +- cli/casp/test.sh | 6 -- 3 files changed, 59 insertions(+), 65 deletions(-) delete mode 100755 cli/casp/test.sh diff --git a/.github/workflows/publish-cli-to-pypi.yaml b/.github/workflows/publish-cli-to-pypi.yaml index 42ac1876cf2..daf2f2759a8 100644 --- a/.github/workflows/publish-cli-to-pypi.yaml +++ b/.github/workflows/publish-cli-to-pypi.yaml @@ -1,59 +1,59 @@ -name: Publish Casp CLI to PyPI - -on: - release: - types: [published] - -jobs: - publish-pypi: - name: Build and Publish CLI - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Check for changes in cli/casp - id: check_changes - run: | - PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || true) - - if [ -z "$PREV_TAG" ]; then - echo "No previous tag found (likely first release). Publishing..." - echo "changed=true" >> "$GITHUB_OUTPUT" - else - echo "Previous release tag found: $PREV_TAG" +# name: Publish Casp CLI to PyPI + +# on: +# release: +# types: [published] + +# jobs: +# publish-pypi: +# name: Build and Publish CLI +# runs-on: ubuntu-latest +# permissions: +# contents: read +# steps: +# - uses: actions/checkout@v4 +# with: +# fetch-depth: 0 + +# - name: Check for changes in cli/casp +# id: check_changes +# run: | +# PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || true) + +# if [ -z "$PREV_TAG" ]; then +# echo "No previous tag found (likely first release). Publishing..." +# echo "changed=true" >> "$GITHUB_OUTPUT" +# else +# echo "Previous release tag found: $PREV_TAG" - if git diff --quiet "$PREV_TAG" HEAD -- cli/casp; then - echo "No changes detected in cli/casp." - echo "changed=false" >> "$GITHUB_OUTPUT" - else - echo "Changes detected in cli/casp." - echo "changed=true" >> "$GITHUB_OUTPUT" - fi - fi - - - name: Set up Python - if: steps.check_changes.outputs.changed == 'true' - uses: actions/setup-python@v4 - with: - python-version: '3.11' - - - name: Install build dependencies - if: steps.check_changes.outputs.changed == 'true' - run: python -m pip install build --user - - - name: Build package - if: steps.check_changes.outputs.changed == 'true' - working-directory: cli/casp - run: python -m build - - - name: Publish to PyPI - if: steps.check_changes.outputs.changed == 'true' - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} - packages_dir: cli/casp/dist/ - skip_existing: true \ No newline at end of file +# if git diff --quiet "$PREV_TAG" HEAD -- cli/casp; then +# echo "No changes detected in cli/casp." +# echo "changed=false" >> "$GITHUB_OUTPUT" +# else +# echo "Changes detected in cli/casp." +# echo "changed=true" >> "$GITHUB_OUTPUT" +# fi +# fi + +# - name: Set up Python +# if: steps.check_changes.outputs.changed == 'true' +# uses: actions/setup-python@v4 +# with: +# python-version: '3.11' + +# - name: Install build dependencies +# if: steps.check_changes.outputs.changed == 'true' +# run: python -m pip install build --user + +# - name: Build package +# if: steps.check_changes.outputs.changed == 'true' +# working-directory: cli/casp +# run: python -m build + +# - name: Publish to PyPI +# if: steps.check_changes.outputs.changed == 'true' +# uses: pypa/gh-action-pypi-publish@release/v1 +# with: +# password: ${{ secrets.PYPI_API_TOKEN }} +# packages_dir: cli/casp/dist/ +# skip_existing: true \ No newline at end of file diff --git a/cli/casp/pyproject.toml b/cli/casp/pyproject.toml index f0df425c2ca..2c8f3555c2e 100644 --- a/cli/casp/pyproject.toml +++ b/cli/casp/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "casp" -version = "2.17.0.1764252874" +version = "0.0.8" authors = [ { name="PauloVLB", email="paulovlb@google.com" }, ] diff --git a/cli/casp/test.sh b/cli/casp/test.sh deleted file mode 100755 index 89f7b42d3dc..00000000000 --- a/cli/casp/test.sh +++ /dev/null @@ -1,6 +0,0 @@ -LAST_TAG=$(git describe --tags --abbrev=0) -VERSION=${LAST_TAG#v} -TIMESTAMP=$(date +%s) - -# Set version to . (e.g., 1.0.0.1701234567) -sed -i "s/^version = \".*\"/version = \"$VERSION.$TIMESTAMP\"/" pyproject.toml \ No newline at end of file From 6d434a482da228fcd9632e4555a2797922485409 Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 14:23:47 +0000 Subject: [PATCH 03/10] wip: change the secret name --- .github/workflows/publish-cli-to-testpypi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-cli-to-testpypi.yaml b/.github/workflows/publish-cli-to-testpypi.yaml index c99f0256132..8886a3e2cda 100644 --- a/.github/workflows/publish-cli-to-testpypi.yaml +++ b/.github/workflows/publish-cli-to-testpypi.yaml @@ -29,7 +29,7 @@ jobs: - name: Publish to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} + password: ${{ secrets.TEST_CASP_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ packages_dir: cli/casp/dist/ skip_existing: true \ No newline at end of file From 723901b865d91e4969b99c33895424fe537088b0 Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 14:29:04 +0000 Subject: [PATCH 04/10] wip: add dynamic version and fix warnings --- .github/workflows/publish-cli-to-testpypi.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-cli-to-testpypi.yaml b/.github/workflows/publish-cli-to-testpypi.yaml index 8886a3e2cda..272585aab62 100644 --- a/.github/workflows/publish-cli-to-testpypi.yaml +++ b/.github/workflows/publish-cli-to-testpypi.yaml @@ -22,6 +22,17 @@ jobs: - name: Install build dependencies run: python -m pip install build --user + - name: Bump version for TestPyPI + working-directory: cli/casp + run: | + # Get the latest tag and strip the leading 'v' (e.g., v1.0.0 -> 1.0.0) + LAST_TAG=$(git describe --tags --abbrev=0) + VERSION=${LAST_TAG#v} + TIMESTAMP=$(date +%s) + + # Set version to . (e.g., 1.0.0.1701234567) + sed -i "s/^version = \".*\"/version = \"$VERSION.$TIMESTAMP\"/" pyproject.toml + - name: Build package working-directory: cli/casp run: python -m build @@ -31,5 +42,5 @@ jobs: with: password: ${{ secrets.TEST_CASP_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ - packages_dir: cli/casp/dist/ - skip_existing: true \ No newline at end of file + packages-dir: cli/casp/dist/ + skip-existing: true \ No newline at end of file From a1349d55b37e83e58e9bb4bed3f5cc84c6c86e54 Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 14:32:48 +0000 Subject: [PATCH 05/10] wip: add fetch-depth and endline --- .github/workflows/publish-cli-to-pypi.yaml | 2 +- .github/workflows/publish-cli-to-testpypi.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-cli-to-pypi.yaml b/.github/workflows/publish-cli-to-pypi.yaml index daf2f2759a8..394123f256e 100644 --- a/.github/workflows/publish-cli-to-pypi.yaml +++ b/.github/workflows/publish-cli-to-pypi.yaml @@ -56,4 +56,4 @@ # with: # password: ${{ secrets.PYPI_API_TOKEN }} # packages_dir: cli/casp/dist/ -# skip_existing: true \ No newline at end of file +# skip_existing: true diff --git a/.github/workflows/publish-cli-to-testpypi.yaml b/.github/workflows/publish-cli-to-testpypi.yaml index 272585aab62..ba539d90181 100644 --- a/.github/workflows/publish-cli-to-testpypi.yaml +++ b/.github/workflows/publish-cli-to-testpypi.yaml @@ -13,7 +13,8 @@ jobs: contents: read steps: - uses: actions/checkout@v4 - + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v4 with: @@ -43,4 +44,4 @@ jobs: password: ${{ secrets.TEST_CASP_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ packages-dir: cli/casp/dist/ - skip-existing: true \ No newline at end of file + skip-existing: true From ad299a3d51e7a363d5a9e54bdc91a2a648c61dc4 Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 15:56:40 +0000 Subject: [PATCH 06/10] refactor: add license and chang secret names --- .github/workflows/publish-cli-to-pypi.yaml | 142 +++++++++++------- .../workflows/publish-cli-to-testpypi.yaml | 16 +- 2 files changed, 99 insertions(+), 59 deletions(-) diff --git a/.github/workflows/publish-cli-to-pypi.yaml b/.github/workflows/publish-cli-to-pypi.yaml index 394123f256e..8fe39e66079 100644 --- a/.github/workflows/publish-cli-to-pypi.yaml +++ b/.github/workflows/publish-cli-to-pypi.yaml @@ -1,59 +1,85 @@ -# name: Publish Casp CLI to PyPI - -# on: -# release: -# types: [published] - -# jobs: -# publish-pypi: -# name: Build and Publish CLI -# runs-on: ubuntu-latest -# permissions: -# contents: read -# steps: -# - uses: actions/checkout@v4 -# with: -# fetch-depth: 0 - -# - name: Check for changes in cli/casp -# id: check_changes -# run: | -# PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || true) - -# if [ -z "$PREV_TAG" ]; then -# echo "No previous tag found (likely first release). Publishing..." -# echo "changed=true" >> "$GITHUB_OUTPUT" -# else -# echo "Previous release tag found: $PREV_TAG" +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Publish Casp CLI to PyPI + +on: + release: + types: [published] + +jobs: + publish-pypi: + name: Build and Publish CLI + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Check for changes in cli/casp + id: check_changes + run: | + PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || true) + + if [ -z "$PREV_TAG" ]; then + echo "No previous tag found (likely first release). Publishing..." + echo "changed=true" >> "$GITHUB_OUTPUT" + else + echo "Previous release tag found: $PREV_TAG" -# if git diff --quiet "$PREV_TAG" HEAD -- cli/casp; then -# echo "No changes detected in cli/casp." -# echo "changed=false" >> "$GITHUB_OUTPUT" -# else -# echo "Changes detected in cli/casp." -# echo "changed=true" >> "$GITHUB_OUTPUT" -# fi -# fi - -# - name: Set up Python -# if: steps.check_changes.outputs.changed == 'true' -# uses: actions/setup-python@v4 -# with: -# python-version: '3.11' - -# - name: Install build dependencies -# if: steps.check_changes.outputs.changed == 'true' -# run: python -m pip install build --user - -# - name: Build package -# if: steps.check_changes.outputs.changed == 'true' -# working-directory: cli/casp -# run: python -m build - -# - name: Publish to PyPI -# if: steps.check_changes.outputs.changed == 'true' -# uses: pypa/gh-action-pypi-publish@release/v1 -# with: -# password: ${{ secrets.PYPI_API_TOKEN }} -# packages_dir: cli/casp/dist/ -# skip_existing: true + if git diff --quiet "$PREV_TAG" HEAD -- cli/casp; then + echo "No changes detected in cli/casp." + echo "changed=false" >> "$GITHUB_OUTPUT" + else + echo "Changes detected in cli/casp." + echo "changed=true" >> "$GITHUB_OUTPUT" + fi + fi + + - name: Set up Python + if: steps.check_changes.outputs.changed == 'true' + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install build dependencies + if: steps.check_changes.outputs.changed == 'true' + run: python -m pip install build --user + + - name: Set version to release tag + if: steps.check_changes.outputs.changed == 'true' + working-directory: cli/casp + run: | + # Get the tag name from the release event (e.g., v1.0.0) + TAG_NAME=${{ github.event.release.tag_name }} + # Strip the leading 'v' to get the version (e.g., 1.0.0) + VERSION=${TAG_NAME#v} + + echo "Updating version in pyproject.toml to $VERSION" + sed -i "s/^version = \".*\"/version = \"$VERSION\"/" pyproject.toml + + - name: Build package + if: steps.check_changes.outputs.changed == 'true' + working-directory: cli/casp + run: python -m build + + - name: Publish to PyPI + if: steps.check_changes.outputs.changed == 'true' + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.CASP_PYPI_API_TOKEN }} + packages_dir: cli/casp/dist/ + skip_existing: true \ No newline at end of file diff --git a/.github/workflows/publish-cli-to-testpypi.yaml b/.github/workflows/publish-cli-to-testpypi.yaml index ba539d90181..102aa744a21 100644 --- a/.github/workflows/publish-cli-to-testpypi.yaml +++ b/.github/workflows/publish-cli-to-testpypi.yaml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Publish Casp CLI to TestPyPI on: @@ -41,7 +55,7 @@ jobs: - name: Publish to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.TEST_CASP_PYPI_API_TOKEN }} + password: ${{ secrets.CASP_TEST_PYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ packages-dir: cli/casp/dist/ skip-existing: true From a6bc972b1a3a8812ef6aa577a43e1c9c08a7268a Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 15:58:49 +0000 Subject: [PATCH 07/10] fix: add newline --- .github/workflows/publish-cli-to-pypi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-cli-to-pypi.yaml b/.github/workflows/publish-cli-to-pypi.yaml index 8fe39e66079..1b22968fc2d 100644 --- a/.github/workflows/publish-cli-to-pypi.yaml +++ b/.github/workflows/publish-cli-to-pypi.yaml @@ -82,4 +82,4 @@ jobs: with: password: ${{ secrets.CASP_PYPI_API_TOKEN }} packages_dir: cli/casp/dist/ - skip_existing: true \ No newline at end of file + skip_existing: true From e2b7f34afc66bb6f5e8383e8bdf5ad68671f416e Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 16:05:46 +0000 Subject: [PATCH 08/10] refactor: echo the version that is being updated --- .github/workflows/publish-cli-to-testpypi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-cli-to-testpypi.yaml b/.github/workflows/publish-cli-to-testpypi.yaml index 102aa744a21..3ba3a14fb1e 100644 --- a/.github/workflows/publish-cli-to-testpypi.yaml +++ b/.github/workflows/publish-cli-to-testpypi.yaml @@ -46,6 +46,7 @@ jobs: TIMESTAMP=$(date +%s) # Set version to . (e.g., 1.0.0.1701234567) + echo "Updating version in pyproject.toml to $VERSION.$TIMESTAMP" sed -i "s/^version = \".*\"/version = \"$VERSION.$TIMESTAMP\"/" pyproject.toml - name: Build package From 48485b6409697ca59ff2b893a82de931027f7af7 Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 16:17:24 +0000 Subject: [PATCH 09/10] refactor: add instructions about the version --- cli/casp/pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/casp/pyproject.toml b/cli/casp/pyproject.toml index 2c8f3555c2e..67f401b64c2 100644 --- a/cli/casp/pyproject.toml +++ b/cli/casp/pyproject.toml @@ -4,7 +4,11 @@ build-backend = "setuptools.build_meta" [project] name = "casp" -version = "0.0.8" +# This is a placeholder version. The actual version is set +# in publish-cli-to-pypi.yaml and publish-cli-to-testpypi.yaml +# If you want to manually publish the CLI, you need to manually +# set the version here. +version = "0.0.8" authors = [ { name="PauloVLB", email="paulovlb@google.com" }, ] From 99bed3bb7e44a969d73bfde9440d43cb93fa6434 Mon Sep 17 00:00:00 2001 From: PauloVLB Date: Thu, 27 Nov 2025 17:02:23 +0000 Subject: [PATCH 10/10] fix: license year and trigger --- .github/workflows/publish-cli-to-pypi.yaml | 2 +- .github/workflows/publish-cli-to-testpypi.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-cli-to-pypi.yaml b/.github/workflows/publish-cli-to-pypi.yaml index 1b22968fc2d..0e5b37ceb4d 100644 --- a/.github/workflows/publish-cli-to-pypi.yaml +++ b/.github/workflows/publish-cli-to-pypi.yaml @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2025 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/publish-cli-to-testpypi.yaml b/.github/workflows/publish-cli-to-testpypi.yaml index 3ba3a14fb1e..d91371de9a0 100644 --- a/.github/workflows/publish-cli-to-testpypi.yaml +++ b/.github/workflows/publish-cli-to-testpypi.yaml @@ -15,10 +15,11 @@ name: Publish Casp CLI to TestPyPI on: - pull_request: - types: [opened, synchronize, reopened] + push: + branches: [ master ] paths: - 'cli/casp/**' + jobs: publish-testpypi: