Separate release creation and asset upload (#6648)

Split creating a release and uploading build assets to that release into
two separate steps. This allows the release creation step to have the
"continue on error" flag set, so that whichever release job completes
first can create the release, while the slower one will fail, move on,
and still successfully upload its files.
This commit is contained in:
Aaron Gable 2023-02-10 09:17:26 -08:00 committed by GitHub
parent 60eb2145ec
commit 581ea05d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -16,6 +16,7 @@ jobs:
matrix: matrix:
GO_VERSION: GO_VERSION:
- "1.19.5" - "1.19.5"
- "1.20"
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
permissions: permissions:
contents: write contents: write
@ -34,4 +35,11 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://cli.github.com/manual/gh_release_create # https://cli.github.com/manual/gh_release_create
run: gh release create "${GITHUB_REF_NAME}" boulder*.deb run: gh release create "${GITHUB_REF_NAME}"
continue-on-error: true
- name: Upload release files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://cli.github.com/manual/gh_release_upload
run: gh release upload "${GITHUB_REF_NAME}" boulder*.deb