Add retries to the release step
This commit is contained in:
parent
c6e2f23340
commit
a5c4df539e
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -111,7 +111,8 @@ jobs:
|
|||||||
name: ${{env.BLOAT_BUSTER_RELEASE_NAME_BASE}}
|
name: ${{env.BLOAT_BUSTER_RELEASE_NAME_BASE}}
|
||||||
if-no-files-found: 'error'
|
if-no-files-found: 'error'
|
||||||
path: ${{env.BLOAT_BUSTER_RELEASE_PATH_BASE}}.7z*
|
path: ${{env.BLOAT_BUSTER_RELEASE_PATH_BASE}}.7z*
|
||||||
- name: Release
|
- name: Release - Attempt 1
|
||||||
|
id: release_attempt_1
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
env:
|
env:
|
||||||
@ -124,3 +125,32 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z
|
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z
|
||||||
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z.b2sum
|
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z.b2sum
|
||||||
|
continue-on-error: true
|
||||||
|
- name: Release - Attempt 2
|
||||||
|
id: release_attempt_2
|
||||||
|
if: ${{ steps.release_attempt_1.outcome == 'failure' && github.ref == 'refs/heads/main' }}
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
name: "Development build"
|
||||||
|
tag_name: ${{ env.RELEASE_TAG_NAME }}
|
||||||
|
fail_on_unmatched_files: true
|
||||||
|
make_latest: true
|
||||||
|
files: |
|
||||||
|
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z
|
||||||
|
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z.b2sum
|
||||||
|
continue-on-error: true
|
||||||
|
- name: Release - Attempt 3
|
||||||
|
if: ${{ steps.release_attempt_2.outcome == 'failure' && github.ref == 'refs/heads/main' }}
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
name: "Development build"
|
||||||
|
tag_name: ${{ env.RELEASE_TAG_NAME }}
|
||||||
|
fail_on_unmatched_files: true
|
||||||
|
make_latest: true
|
||||||
|
files: |
|
||||||
|
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z
|
||||||
|
${{ env.BLOAT_BUSTER_RELEASE_PATH_BASE }}.7z.b2sum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user