build-zip
This commit is contained in:
5
.github/workflows/build_push.yml
vendored
5
.github/workflows/build_push.yml
vendored
@@ -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 }}
|
||||||
@@ -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
1
zipBuild/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.zip
|
||||||
Reference in New Issue
Block a user