-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ $# -ne 1 ]; then | ||
cat <<EOF | ||
Use: $0 <VERSION>" | ||
- VERSION version to release (0.1.6 for example) | ||
To install the token, execute the install-marmalade-token.sh. | ||
EOF | ||
exit 1; | ||
fi | ||
|
||
WDIR=$(dirname $0) | ||
|
||
VERSION=$1 | ||
|
||
# launched from the current dev branch | ||
|
||
git fetch -p --all | ||
|
||
git checkout master | ||
|
||
git merge origin/master | ||
|
||
git tag $VERSION | ||
|
||
git push origin --tag | ||
|
||
make package | ||
|
||
./upload-to-marmalade.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# depends on curl | ||
|
||
uploadFile () { | ||
local username=$1 | ||
local tokenFile=$(cat $2) | ||
local packageFile=$3 | ||
local marmaladeUrl=${4:-"https://marmalade-repo.org"} | ||
curl --insecure \ | ||
-F "name=${username}" \ | ||
-F "token=$tokenFile" \ | ||
-F "package=@${packageFile};filename=$(basename ${packageFile})" \ | ||
$marmaladeUrl/v1/packages | ||
} | ||
|
||
uploadFile ardumont ~/.marmalade/token ./markdown-toc.el |