Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
type: boolean
description: Publish to PyPI

concurrency:
group: ${{ github.workflow }}
Comment thread
glenn-jocher marked this conversation as resolved.
queue: max

jobs:
check:
if: github.repository == 'ultralytics/mkdocs' && github.actor == 'glenn-jocher' && github.ref == 'refs/heads/main'
Expand Down Expand Up @@ -100,8 +104,20 @@ jobs:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
id: publish
continue-on-error: true
with:
skip-existing: true # tolerate recovery re-runs after partial failures
- name: Clean partial attestations # leftover *.publish.attestation files make the retry fail pre-existence checks
if: steps.publish.outcome == 'failure'
run: |
rm -f dist/*.publish.attestation
sleep 30
- name: Retry publish # transient sigstore/Rekor or PyPI network failures
if: steps.publish.outcome == 'failure'
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true

sbom:
needs: [check, build, publish]
Expand Down