Skip to content

Commit

Permalink
[U] Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Jan 15, 2023
1 parent d4c8472 commit 8ee516e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/deploy-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ def edit_versions(version: str):
print('Editing README.md...')
path = Path('README.md')
content = path.read_text()
changelog_i = content.index('<!-- CHANGELOG STARTS HERE --->')
version_i = content.index('###', changelog_i)
version_end = content.index('\n', version_i)
content = content[:version_i] + f'### {version}' + content[version_end:]
changelog_token = '<!-- CHANGELOG STARTS HERE --->'
changelog_i = content.index(changelog_token) + len(changelog_token)
content = content[:changelog_i] + f'\n\n### {version}' + content[changelog_i:]
path.write_text(content)

# 4. neofetch script
Expand Down

0 comments on commit 8ee516e

Please sign in to comment.