Skip to content

Commit

Permalink
Remove unneeded HTML conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
astrojuanlu committed Oct 29, 2023
1 parent 0fb43b5 commit a8666ce
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions scripts/make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import re
import subprocess
import sys
import tempfile
from datetime import datetime
from typing import Dict
from typing import Optional
Expand Down Expand Up @@ -201,7 +200,7 @@ def generate_changelog(component: Component, version: str):
print("Unable to get changelog!")
sys.exit(1)

draft_file = pathlib.Path(tempfile.gettempdir()) / "changelog.md"
draft_file = pathlib.Path(component["src"]) / "changes.html"
draft_file.write_text(draft)

with Output(STEP_SUMMARY) as summary:
Expand All @@ -210,15 +209,6 @@ def generate_changelog(component: Component, version: str):
if not IS_RELEASE:
return

# Release notes for github
run(
"myst-docutils-html",
"--template=changes/github-template.html",
str(draft_file),
".changes.html",
cwd=component["src"],
)

# Release notes for changelog
run("towncrier", "build", "--yes", f"--version={version}", cwd=component["src"])

Expand Down

0 comments on commit a8666ce

Please sign in to comment.