update-tags.sh 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/usr/bin/env bash
  2. # Copyright 2018 Google
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # Update the tags for the Firebase 5.0.0 release process
  16. # Before running, make sure everything is pushed.
  17. # This script should be a spec for a more robust Python or Swift script that
  18. # does the following.
  19. # 1. Verify all files are committed
  20. # 2. Verify running on a release branch
  21. # 3. Read the versions from the podspec (or incorporate into even more
  22. # automated version management)
  23. # Delete any existing tags at origin
  24. git push --delete origin '5.1.0'
  25. git push --delete origin 'Core-5.0.2'
  26. #git push --delete origin 'Auth-5.0.0'
  27. git push --delete origin 'Database-5.0.1'
  28. git push --delete origin 'Firestore-0.12.2'
  29. #git push --delete origin 'Functions-2.0.0'
  30. git push --delete origin 'Messaging-3.0.1'
  31. #git push --delete origin 'Storage-3.0.0'
  32. # Delete local tags
  33. git tag --delete '5.1.0'
  34. git tag --delete 'Core-5.0.2'
  35. #git tag --delete 'Auth-5.0.0'
  36. git tag --delete 'Database-5.0.1'
  37. git tag --delete 'Firestore-0.12.2'
  38. #git tag --delete 'Functions-2.0.0'
  39. git tag --delete 'Messaging-3.0.1'
  40. #git tag --delete 'Storage-3.0.0'
  41. # Add and push the tags
  42. git tag '5.1.0'
  43. git tag 'Core-5.0.2'
  44. #git tag 'Auth-5.0.0'
  45. git tag 'Database-5.0.1'
  46. git tag 'Firestore-0.12.2'
  47. #git tag 'Functions-2.0.0'
  48. git tag 'Messaging-3.0.1'
  49. #git tag 'Storage-3.0.0'
  50. git push origin --tags