Skip to content

Commit

Permalink
Pedantic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
toddself committed Jan 20, 2020
1 parent 0b2ec29 commit b2a035f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ gen
deps
index.html
release.json
output.json
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod.ts: take-five.ts
all: clean test release

clean:
rm -f mod.ts release.json
rm -f mod.ts release.json output.json

test:
$(foreach var,$(TEST_FILES),deno --allow-net $(var);)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3
1.0.4
11 changes: 9 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ make_path () {
if echo $STATUS | grep 404 > /dev/null;
then
echo "Making directory ${1}"
curl -X MKCOL -u ${USER}:${TOKEN} ${SERVER}/${UPLOAD_PATH}/$1
curl -sX MKCOL -u ${USER}:${TOKEN} ${SERVER}/${UPLOAD_PATH}/$1
else
echo "Directory "${1}" already exists"
fi
Expand All @@ -26,7 +26,14 @@ render_markdown () {
create_release () {
echo "Marking release ${VERSION} on GitHub"
echo "{\"tag_name\":\"v${VERSION}\",\"target_commitish\":\"master\",\"name\":\"v${VERSION}\",\"body\":\"Take-Five version ${VERSION}\"}" > release.json
curl -u ${GH_USER}:${GH_TOKEN} -sX POST https://api.github.com/repos/toddself/take-five/releases -d @release.json
STATUS=$(curl -u ${GH_USER}:${GH_TOKEN} -sX POST https://api.github.com/repos/toddself/${PROJECT}/releases -d @release.json -w '%{http_code}' -o output.json)
if echo $STATUS | grep 201 > /dev/null;
then
echo "Release generated"
else
echo "Could not make release"
cat output.json
fi
}

make_path $PROJECT
Expand Down

0 comments on commit b2a035f

Please sign in to comment.