mirror of
https://github.com/revanced/jadb.git
synced 2025-02-05 15:07:33 +01:00
Adding release script
This commit is contained in:
parent
b4f5083d00
commit
e9de06dc8c
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
# Used to store github access token for releasing
|
||||
/access_token
|
||||
|
||||
################
|
||||
# IntelliJ #
|
||||
################
|
||||
|
17
release.sh
Executable file
17
release.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ ! -f access_token ]; then
|
||||
echo "Place your access token in a file called access_token"
|
||||
exit -2
|
||||
fi
|
||||
|
||||
VERSION=$1
|
||||
ACCESS_TOKEN=$(<access_token)
|
||||
|
||||
API_JSON=$(printf '{"tag_name": "v%s","target_commitish": "master","name": "v%s","body": "Release of version %s","draft": true,"prerelease": false}' $VERSION $VERSION $VERSION)
|
||||
curl --data "$API_JSON" https://api.github.com/repos/vidstige/jadb/releases?access_token=$ACCESS_TOKEN
|
Loading…
x
Reference in New Issue
Block a user