publish 427 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. # Get the latest Git tag
  3. latest_tag=$(git tag --sort=committerdate | grep -E '^github-v[0-9]+\.[0-9]+\.[0-9]+$' | tail -1)
  4. if [ -z "$latest_tag" ]; then
  5. echo "No tags found"
  6. exit 1
  7. fi
  8. echo "Latest tag: $latest_tag"
  9. # Update github-v1 to latest
  10. git tag -d github-v1
  11. git push origin :refs/tags/github-v1
  12. git tag -a github-v1 $latest_tag -m "Update github-v1 to $latest_tag"
  13. git push origin github-v1