1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00

ci: bleh, do retry inline as part of upload

This commit is contained in:
Wez Furlong 2021-12-08 10:31:56 -07:00
parent eeefca0908
commit 03c7986bb0
12 changed files with 228 additions and 12 deletions

View File

@ -136,4 +136,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -158,4 +158,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -158,4 +158,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -171,4 +171,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -131,4 +131,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -131,4 +131,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -131,4 +131,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.rpm"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.rpm
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -115,4 +115,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly WezTerm-*.zip
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -116,4 +116,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -158,4 +158,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -90,4 +90,22 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly WezTerm-*.zip WezTerm-*.exe"
run: |
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly WezTerm-*.zip WezTerm-*.exe
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done

View File

@ -422,7 +422,25 @@ cargo build --all --release""",
),
RunStep(
"Upload to Nightly Release",
f"bash ci/retry.sh gh release upload --clobber nightly {glob}",
f"""
set -x
set -e
max_attempts=4
attempt=1
until gh release upload --clobber nightly {glob}
do
if (( attempt == max_attempts ))
then
echo "Failed after $max_attempts attempts"
exit 1
fi
sleep 5
: $(( attempt++ ))
done
""",
env={"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}"},
),
]