release.bat 465 B

1234567891011121314151617181920212223
  1. @echo off
  2. if [%1]==[] goto :help
  3. setlocal enableDelayedExpansion
  4. set /p "GH_TOKEN=" <GITHUB_TOKEN
  5. git tag -a %1 -m "Release %1."
  6. git push origin %1
  7. 7z a bufexplorer-%1.zip plugin\bufexplorer.vim doc\bufexplorer.txt
  8. ::gh release create %1 --notes-from-tag bufexplorer-%1.zip
  9. gh release create %1 --generate-notes bufexplorer-%1.zip
  10. ::gh release create %1 --notes-from-tag
  11. goto :done
  12. :help
  13. echo Usage %0 version_number
  14. goto :done
  15. :done