Skip to content

Commit

Permalink
Merge pull request #13 from nxt-dev/ReleaseGraphUpdates
Browse files Browse the repository at this point in the history
Release api-v0.7.1
  • Loading branch information
ImLucasBrown authored Nov 26, 2020
2 parents 7ca081c + 56b99f4 commit 4846d9f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
3 changes: 2 additions & 1 deletion build/GitUtils.nxt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
"",
"data = {",
" \"tag_name\": \"${version_tag}\",",
" \"target_commitish\": \"master\",",
" \"target_commitish\": \"release\",",
" \"name\": \"${version_name} v${version_str}\",",
" \"body\": ${body},",
" \"draft\": True,",
Expand All @@ -288,6 +288,7 @@
" print('making new release')",
" new_rel_resp = requests.post(url, auth=self.secret, data=json.dumps(data))",
" if new_rel_resp.status_code != 201:",
" print(new_rel_resp)",
" print('unsuccessful release')",
" print(new_rel_resp.status_code)",
" sys.exit()",
Expand Down
19 changes: 16 additions & 3 deletions build/release.nxt
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"import shutil",
"# Internal",
"import nxt",
"from nxt.constants import API_VERSION",
"from nxt.constants import API_VERSION, GRAPH_VERSION",
""
]
},
Expand Down Expand Up @@ -526,6 +526,12 @@
"OpenReleaseURL"
],
"comment": "Create the draft release and open it in your browser.",
"attrs": {
"graph_version": {
"type": "raw",
"value": "unknown"
}
},
"code": [
"print(\"Beginning release...\")"
]
Expand Down Expand Up @@ -601,9 +607,15 @@
"/ReleaseLoop": {
"execute_in": "/GenerateChangelog",
"comment": "Calls /CreateRelease",
"attrs": {
"release_types": {
"type": "tuple",
"value": "(${/versions.API}, ${/versions.GRAPH})"
}
},
"code": [
"# Parse return from versions sub-graph",
"for version_info in (${/versions.API}, ${/versions.GRAPH}):",
"for version_info in ${release_types}:",
" # TODO: Don't make a release for graphs, just open a tab to create a tag",
" if not version_info:",
" continue",
Expand All @@ -612,7 +624,8 @@
" version_name = version_cat.capitalize()",
" parameters = {'/CreateRelease.version_tag': version_tag,",
" '/CreateRelease.version_name': version_name,",
" '/CreateRelease.version_str': version_str}",
" '/CreateRelease.version_str': version_str,",
" '/CreateRelease.graph_version': GRAPH_VERSION.VERSION_STR}",
" execute(start='/CreateRelease', parameters=parameters)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion nxt/version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"API": {
"MAJOR": 0,
"MINOR": 7,
"PATCH": 0
"PATCH": 1
},
"GRAPH": {
"MAJOR": 1,
Expand Down

0 comments on commit 4846d9f

Please sign in to comment.