Skip to content

Commit

Permalink
add README path to mk_nuget_task
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Dec 6, 2023
1 parent 1fde3e9 commit 8111d87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/mk_nuget_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def mk_icon(source_root):
mk_dir("out/content")
shutil.copy(f"{source_root}/resources/icon.jpg", "out/content/icon.jpg")

def mk_readme(source_root):
mk_dir("out/content")
shutil.copy(f"{source_root}/src/api/dotnet/README.md", "out/content/icon.jpg")



def create_nuget_spec(version, repo, branch, commit, symbols, arch):
Expand All @@ -105,6 +109,7 @@ def create_nuget_spec(version, repo, branch, commit, symbols, arch):
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
<tags>smt constraint solver theorem prover</tags>
<icon>content/icon.jpg</icon>
<readme>content/README.md</readme>
<projectUrl>https://github.com/Z3Prover/z3</projectUrl>
<license type="expression">MIT</license>
<repository type="git" url="{1}" branch="{2}" commit="{3}" />
Expand Down Expand Up @@ -142,6 +147,7 @@ def create(self):
unpack(self.packages, self.symbols, self.arch)
mk_targets(self.source_root)
mk_icon(self.source_root)
mk_readme(self.source_root)
create_nuget_spec(self.version, self.repo, self.branch, self.commit, self.symbols, self.arch)

def main():
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ stages:

# Enable on release:
- job: PyPIPublish
condition: eq(1,1)
condition: eq(1,0)
displayName: "Publish to PyPI"
pool:
vmImage: "ubuntu-latest"
Expand Down

0 comments on commit 8111d87

Please sign in to comment.