From 0a536f58e039546357c00ea00c5bbb9149983a9c Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Sun, 8 Aug 2021 04:45:35 +0430 Subject: [PATCH] add md5sum --- .github/workflows/build_push.yml | 3 ++- buildZip/.gitignore | 3 ++- package.json | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index cb616134..af4aaf4d 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -37,6 +37,7 @@ jobs: yarn install yarn build yarn build-zip + yarn build-md5 - name: Generate Tag Name id: GenTagName @@ -73,7 +74,7 @@ jobs: uses: ncipollo/release-action@v1 with: token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} - artifacts: "master/buildZip/*.zip" + artifacts: "master/buildZip/*.zip;master/buildZip/md5sum" owner: "Suwayomi" repo: "Tachidesk-WebUI-preview" tag: ${{ steps.GenTagName.outputs.value }} \ No newline at end of file diff --git a/buildZip/.gitignore b/buildZip/.gitignore index 6f66c74b..0f0a164b 100644 --- a/buildZip/.gitignore +++ b/buildZip/.gitignore @@ -1 +1,2 @@ -*.zip \ No newline at end of file +*.zip +md5sum diff --git a/package.json b/package.json index 70e586a6..181cedd6 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", + "build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum > buildZip/md5sum", "build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Tachidesk-WebUI-r$rev *", "test": "react-scripts test", "eject": "react-scripts eject"