NeteaseCloudMusic_PythonSDK/publish.py
2023-12-20 01:22:32 +08:00

15 lines
356 B
Python

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
subprocess.check_call(['towncrier', '--yes'])
if not os.path.isdir('./newsfragments'):
os.mkdir('./newsfragments')