Skip to content

Commit

Permalink
fix: publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegiwg committed Jun 26, 2024
1 parent e295d3f commit b5dcf24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.7
v1.3.8
12 changes: 2 additions & 10 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,5 @@ sleep 10
# Publish the new version
GOPROXY=proxy.golang.org go list -m github.com/Diegiwg/tt@"$VERSION" &

# Test if the version was published
echo "Getting the version from https://pkg.go.dev/github.com/Diegiwg/tt@$VERSION..."
OK=$(curl -o /dev/null -X 'POST' -s -w "%{http_code}\n" https://pkg.go.dev/github.com/Diegiwg/tt@"$VERSION")

if [ "$OK" = "200" ]; then
echo "Version $VERSION was published"
else
echo "Version $VERSION was not published"
exit 1
fi
# Ensure that the new version was published
echo "Go to https://pkg.go.dev/github.com/Diegiwg/tt@$VERSION to check the new version"

0 comments on commit b5dcf24

Please sign in to comment.