From 581ea05d219fd4206f73349aaba90f014a91738c Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Fri, 10 Feb 2023 09:17:26 -0800 Subject: [PATCH] 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. --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa07f087e..9fb2f84d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,7 @@ jobs: matrix: GO_VERSION: - "1.19.5" + - "1.20" runs-on: ubuntu-20.04 permissions: contents: write @@ -34,4 +35,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 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