release.bat 385 B

1234567891011121314151617181920
  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 syntax\bufexplorer.vim
  8. gh release create %1 --generate-notes bufexplorer-%1.zip
  9. goto :done
  10. :help
  11. echo Usage %0 version_number
  12. goto :done
  13. :done