From cc2bfa41dba5aa416d82aaca52e691b43d6f0bbb Mon Sep 17 00:00:00 2001 From: hzy Date: Mon, 6 Jun 2022 02:45:46 +0800 Subject: [PATCH] Merge all *. sha into sha256sum --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 943b11bea50c..4a4ad8d14805 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,12 +84,26 @@ jobs: with: path: artifacts/ + - name: Generate sha256sum + run: | + touch sha256sum + for a in artifacts/*/*.sha; do + cat "$a" >>sha256sum + rm -f "$a" + done + + - name: Show sha256sum + run: | + cat sha256sum + - name: Release run: | time="${{ github.event.head_commit.timestamp }}" sha="${GITHUB_SHA:0:8}" tag="ci-$(date +'%Y%m%d-%H%M' -d "$time")" message="CI $(date +'%Y-%m-%d %H:%M' -d "$time")" - hub release create $(for a in artifacts/*/*; do echo -a $a; done) -t "$GITHUB_SHA" "$tag" -m "$message" + hub release create -t "$GITHUB_SHA" "$tag" -m "$message" \ + $(for a in artifacts/*/*; do echo -a $a; done) \ + -a sha256sum env: GITHUB_TOKEN: ${{ github.token }}