Skip to content

Commit

Permalink
Fix deploy action when creating an initially-deprecated module
Browse files Browse the repository at this point in the history
  • Loading branch information
MJGaughran committed Nov 29, 2024
1 parent ffb0497 commit 1df65c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/deploy_tools/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ def deploy_new_releases(to_add: list[Release], layout: Layout) -> None:
for release in to_add:
name = release.module.name
version = release.module.version
deprecated = release.deprecated

built_modulefile = layout.get_built_modulefile(name, version)
modulefile_link = layout.get_modulefile(name, version)
modulefile_link = layout.get_modulefile(
name, version, from_deprecated=deprecated
)

modulefile_link.parent.mkdir(parents=True, exist_ok=True)
os.symlink(built_modulefile, modulefile_link)
Expand Down

0 comments on commit 1df65c8

Please sign in to comment.