From 76eac98fb0ac36ed40c6169ec75e3715827ac573 Mon Sep 17 00:00:00 2001 From: aoirint Date: Sun, 19 Sep 2021 06:08:43 +0900 Subject: [PATCH] versioned artifact name for release --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96dce2eaa..5212c2d06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,6 +95,9 @@ jobs: "${{ env.IMAGE_TAG }}" - uses: actions/upload-artifact@v2 + env: + VERSIONED_ARTIFACT_NAME: | + format('{0}-{1}', matrix.tag, (github.event.release.tag_name != '' && github.event.release.tag_name) || github.sha) with: - name: ${{ matrix.tag }}-${{ github.sha }} + name: ${{ env.VERSIONED_ARTIFACT_NAME }} path: build/run.dist/