mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			364 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			364 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
# Insist repository is clean
 | 
						|
git diff-index --quiet HEAD
 | 
						|
 | 
						|
git checkout $1
 | 
						|
git pull origin $1
 | 
						|
git push origin $1
 | 
						|
 | 
						|
version=$(grep "__version__ = " spacy/about.py)
 | 
						|
version=${version/__version__ = }
 | 
						|
version=${version/\'/}
 | 
						|
version=${version/\'/}
 | 
						|
version=${version/\"/}
 | 
						|
version=${version/\"/}
 | 
						|
git tag "v$version"
 | 
						|
git push origin "v$version"
 |