Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Retry publishing if fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdy committed Aug 13, 2021
1 parent 20ad0fd commit 90fe527
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-test.yml
Expand Up @@ -57,9 +57,9 @@ jobs:
publish:
runs-on: ubuntu-latest
if: startsWith( github.ref, 'refs/tags/v')
needs:
- fedora-35-build-test
- ubuntu-2004-build-test
#needs:
#- fedora-35-build-test
#- ubuntu-2004-build-test

steps:
- uses: actions/checkout@v2
Expand All @@ -71,6 +71,7 @@ jobs:
run: |
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
for i in bpf-sys cargo-bpf redbpf redbpf-macros redbpf-probes; do
(cd $i; cargo publish -v --no-verify)
sleep 10
while ! (cd $i; cargo publish -v --no-verify); do
sleep 10
done
done

0 comments on commit 90fe527

Please sign in to comment.