NeteaseCloudMusic_PythonSDK/publish.py

15 lines
356 B
Python
Raw Normal View History

2023-12-19 17:10:25 +00:00
import os
import subprocess
# Bump version
subprocess.check_call(['bumpversion', 'patch'])
# Push changes to remote
subprocess.check_call(['git', 'push'])
subprocess.check_call(['git', 'push', '--tags'])
# Run towncrier
2023-12-19 17:22:32 +00:00
subprocess.check_call(['towncrier', '--yes'])
if not os.path.isdir('./newsfragments'):
os.mkdir('./newsfragments')