mirror of
				https://github.com/allenai/olmocr.git
				synced 2025-10-31 01:55:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			522 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			522 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| TAG=$(python -c 'from pdelfin.version import VERSION; print("v" + VERSION)')
 | |
| 
 | |
| read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt
 | |
| 
 | |
| if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
 | |
|     python scripts/prepare_changelog.py
 | |
|     git add -A
 | |
|     git commit -m "Bump version to $TAG for release" || true && git push
 | |
|     echo "Creating new git tag $TAG"
 | |
|     git tag "$TAG" -m "$TAG"
 | |
|     git push --tags
 | |
| else
 | |
|     echo "Cancelled"
 | |
|     exit 1
 | |
| fi
 | 
