mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-08 02:29:00 +00:00
fix(ci): make nightly publish idempotent and serialized
This commit is contained in:
10
.github/workflows/nightly.yml
vendored
10
.github/workflows/nightly.yml
vendored
@@ -5,6 +5,10 @@ on:
|
|||||||
- cron: '0 6 * * *' # daily at 6am UTC
|
- cron: '0 6 * * *' # daily at 6am UTC
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: nightly-publish
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Check for new commits
|
name: Check for new commits
|
||||||
@@ -94,13 +98,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
name: pypi
|
name: pypi
|
||||||
url: https://pypi.org/p/crewai
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v6
|
uses: astral-sh/setup-uv@v6
|
||||||
with:
|
with:
|
||||||
@@ -125,7 +126,8 @@ jobs:
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo "Publishing $package"
|
echo "Publishing $package"
|
||||||
if ! uv publish "$package"; then
|
# --check-url skips files already on PyPI so manual re-runs on the same day are idempotent.
|
||||||
|
if ! uv publish --check-url https://pypi.org/simple/ "$package"; then
|
||||||
echo "Failed to publish $package"
|
echo "Failed to publish $package"
|
||||||
failed=1
|
failed=1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user