Browse Source

fix release script

main v0.1.1
Nicolas Massé 5 years ago
parent
commit
111e068fd5
  1. 1
      .gitignore
  2. 2
      release.sh

1
.gitignore

@ -1,2 +1,3 @@
*.json *.json
statik.go statik.go
release

2
release.sh

@ -64,7 +64,7 @@ fi
gh auth status gh auth status
if ! gh release list | cut -f3 | grep -qx "$VERSION"; then if ! gh release list | cut -f3 | grep -qx "$VERSION"; then
echo "Creating the $VERSION release..." echo "Creating the $VERSION release..."
gh release create "$VERSION" release/* -d --target "$CURRENT_COMMIT_ID" -n "Released v$VERSION" --title "v$VERSION" gh release create "$VERSION" release/* -d --target "$CURRENT_COMMIT_ID" -n "Released $VERSION" --title "$VERSION"
else else
gh release upload "$VERSION" --clobber release/* gh release upload "$VERSION" --clobber release/*
fi fi

Loading…
Cancel
Save