Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
sim51 committed Apr 17, 2019
1 parent 67df7e8 commit 5315ffe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
neo4j-fdw_v*.zip
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
20 changes: 13 additions & 7 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
# - github-release-cli (https://www.npmjs.com/package/github-release-cli)
###############################################################################

git update-index -q --refresh
CHANGED=$(git diff-index --name-only HEAD --)
if [ ! -z "$CHANGED" ]; then
echo "You have some local changes"
echo "$(git status)"
exit 1
fi

echo "Pushing"
git push

echo "~ Generate the project archive"
git archive --format zip --prefix=neo4j-fdw_v$1/ --output ./neo4j-fdw_v$1.zip HEAD
unzip ./neo4j-fdw_v$1.zip
Expand Down Expand Up @@ -52,12 +63,7 @@ fi

# Create the github release notes
# based on https://www.npmjs.com/package/github-release-cli
github-release upload \
--owner=sim51 \
--repo=neo4j-fdw \
--tag="v$1" \
--name="v$1" \
--body="$(cat $tmpfile)" \
./neo4j-fdw_v$1.zip
echo "Running github release github-release"
github-release upload --owner=sim51 --repo=neo4j-fdw --tag="v$1" --name="v$1" --body="$(cat $tmpfile)" neo4j-fdw_v$1.zip

echo "Don't forget to upload the zip file at https://manager.pgxn.org/upload"

0 comments on commit 5315ffe

Please sign in to comment.