build-zip

This commit is contained in:
Aria Moradi
2021-08-08 01:35:33 +04:30
parent b089d0c9af
commit d19d1ca7c8
3 changed files with 4 additions and 3 deletions

View File

@@ -36,8 +36,7 @@ jobs:
cd master cd master
yarn install yarn install
yarn build yarn build
cd build yarn build-zip
zip -9 -r "../Tachidesk-WebUI-r$(git rev-list HEAD --count)" *
- name: Generate Tag Name - name: Generate Tag Name
id: GenTagName id: GenTagName
@@ -74,7 +73,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/*.zip" artifacts: "master/buildZip/*.zip"
owner: "Suwayomi" owner: "Suwayomi"
repo: "Tachidesk-WebUI-preview" repo: "Tachidesk-WebUI-preview"
tag: ${{ steps.GenTagName.outputs.value }} tag: ${{ steps.GenTagName.outputs.value }}

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-zip": "cd build && rev=$(git rev-list HEAD --count) && echo $rev > revision && zip -9 -r ../zipBuild/Tachidesk-WebUI-r$rev *",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject" "eject": "react-scripts eject"
}, },

1
zipBuild/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.zip