Skip to content

Commit 4b186e8

Browse files
committed
fixes paths
2 parents b5b0a8c + f61f58c commit 4b186e8

File tree

4 files changed

+42
-10
lines changed

4 files changed

+42
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist/
44
*.egg-info/
55
*.pypirc
66
*.pyc
7+
*note
78
*backup*

__screenshot/draceditor-guide.png

126 KB
Loading

foob.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

upload.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
# Command to upload new version release at pypi
4+
# ./upload.sh pypi
5+
if [ "$1" == "pypi" ]; then
6+
python setup.py sdist upload -r pypi
7+
cd ../organization/dracos-markdown-editor
8+
git fetch upstream && git merge upstream/master && git push
9+
fi
10+
11+
if [ "$1" == "git" ]; then
12+
13+
# Command to upload new tag version
14+
# by checking the last version release.
15+
# ./upload.sh git tag
16+
if [ "$2" == "tag" ]; then
17+
# check last release version and plus it with 1
18+
# eg: v1.0.8 => v1.0.9
19+
# new_version=$(
20+
# git tag | tail -n1 | awk -F '[/.]' '{ gsub("v", "", $1); print $1$2$3 + 1}' | fold -w1 | paste -sd.
21+
# );
22+
new_version = $(git tag | tail -n1 | perl -pe 's/\v//g;s/\.//g;$_++;s/(\d)/$1./g;s/.$/\n/;') # v1.0.9 => v1.1.0
23+
# echo "git tag -a v$new_version -m 'Release v$new_version'";
24+
git tag -a "v$new_version" -m "Release v$new_version";
25+
git push origin "v$new_version";
26+
echo "Current version: v$new_version";
27+
fi
28+
29+
# Command to push new git commit
30+
# ./upload.sh git commit
31+
if [ "$2" == "commit" ]; then
32+
echo -n "Commit name > ";
33+
read commit_name
34+
35+
if [ "$commit_name" ]; then
36+
git add .;
37+
git commit -m "$commit_name";
38+
git push -u origin master;
39+
fi
40+
fi
41+
fi

0 commit comments

Comments
 (0)