diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index e927b064..cb616134 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -36,8 +36,7 @@ jobs: cd master yarn install yarn build - cd build - zip -9 -r "../Tachidesk-WebUI-r$(git rev-list HEAD --count)" * + yarn build-zip - name: Generate Tag Name id: GenTagName @@ -74,7 +73,7 @@ jobs: uses: ncipollo/release-action@v1 with: token: ${{ secrets.DEPLOY_PREVIEW_TOKEN }} - artifacts: "master/*.zip" + artifacts: "master/buildZip/*.zip" owner: "Suwayomi" repo: "Tachidesk-WebUI-preview" tag: ${{ steps.GenTagName.outputs.value }} \ No newline at end of file diff --git a/package.json b/package.json index 834b2ff2..6626adc6 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", + "build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo $rev > revision && zip -9 -r ../zipBuild/Tachidesk-WebUI-r$rev *", "test": "react-scripts test", "eject": "react-scripts eject" }, diff --git a/zipBuild/.gitignore b/zipBuild/.gitignore new file mode 100644 index 00000000..6f66c74b --- /dev/null +++ b/zipBuild/.gitignore @@ -0,0 +1 @@ +*.zip \ No newline at end of file