From 4387863a19e22b452a46048f7ee74477788747e4 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Thu, 9 Jan 2025 17:24:15 -0800 Subject: [PATCH] final workflow --- .github/workflows/publish-to-test-pypi.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 51102eed30..99b870df76 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -1,15 +1,14 @@ name: Publish Python 🐍 distribution 📦 to TestPyPI on: - push - # workflow_dispatch: # Keep manual trigger - # inputs: - # rc_version: - # description: 'RC version number (e.g., 1, 2, 3)' - # required: true - # type: string - # schedule: - # - cron: "0 0 * * *" # Run every day at midnight + workflow_dispatch: # Keep manual trigger + inputs: + rc_version: + description: 'RC version number (e.g., 1, 2, 3)' + required: true + type: string + schedule: + - cron: "0 0 * * *" # Run every day at midnight jobs: trigger-client-build: @@ -55,11 +54,6 @@ jobs: - name: Update version for nightly run: | sed -i 's/version="\([^"]*\)"/version="\1${{ needs.trigger-client-build.outputs.version }}"/' setup.py - echo "Before requirements.txt modification:" - cat requirements.txt - sed -i 's#llama-stack-client\([>=]\+\)\([^"]*\)#llama-stack-client==\2${{ needs.trigger-client-build.outputs.version }} --index-url https://test.pypi.org/simple/#' requirements.txt - echo "After requirements.txt modification:" - cat requirements.txt - name: Set up Python uses: actions/setup-python@v5 with: