Skip to content

Commit 2662e74

Browse files
committed
build: add upload script
1 parent 8bfe805 commit 2662e74

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"sync": "cordova-res android --icon-background-source '#FFFFFF' --skip-config --copy && cap sync",
4444
"test": "react-scripts test",
4545
"eject": "react-scripts eject",
46-
"release": "standard-version"
46+
"release": "standard-version",
47+
"upload": "./scripts/upload-apk.sh"
4748
},
4849
"eslintConfig": {
4950
"extends": [

scripts/upload-apk.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
4+
CD=$(dirname $0)
5+
VERSION=$(git describe)
6+
7+
gh release upload $VERSION $CD/../android/app/build/outputs/apk/release/task.json-web-$VERSION.apk

0 commit comments

Comments
 (0)