add md5sum

This commit is contained in:
Aria Moradi
2021-08-08 04:45:35 +04:30
parent c3ec28ffdb
commit 0a536f58e0
3 changed files with 5 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ jobs:
yarn install yarn install
yarn build yarn build
yarn build-zip yarn build-zip
yarn build-md5
- name: Generate Tag Name - name: Generate Tag Name
id: GenTagName id: GenTagName
@@ -73,7 +74,7 @@ jobs:
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }}
artifacts: "master/buildZip/*.zip" artifacts: "master/buildZip/*.zip;master/buildZip/md5sum"
owner: "Suwayomi" owner: "Suwayomi"
repo: "Tachidesk-WebUI-preview" repo: "Tachidesk-WebUI-preview"
tag: ${{ steps.GenTagName.outputs.value }} tag: ${{ steps.GenTagName.outputs.value }}

1
buildZip/.gitignore vendored
View File

@@ -1 +1,2 @@
*.zip *.zip
md5sum

View File

@@ -21,6 +21,7 @@
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",
"build": "react-scripts build", "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 *", "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", "test": "react-scripts test",
"eject": "react-scripts eject" "eject": "react-scripts eject"