Skip to content

Commit 4b26136

Browse files
author
neatc0der
committed
repairs twine configuration for release action
1 parent 8e91784 commit 4b26136

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.build/mkdocs_markmap_build/common.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
class GithubHandler(object):
2424
def __init__(self, tag: str) -> None:
2525
self.tag = tag
26-
self.github: Github = Github(os.environ['GITHUB_TOKEN'])
26+
github_token = os.environ.get('GITHUB_TOKEN')
27+
if github_token is None:
28+
print('environment variable "GITHUB_TOKEN" is not set')
29+
sys.exit(1)
30+
self.github: Github = Github(github_token)
2731
self.repository: Repository = self.github.get_repo(REPOSITORY)
2832

2933

.build/mkdocs_markmap_build/distribution.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def __init__(self, tag: str) -> None:
1515
def distribute(self):
1616
assets: List[str] = self._collector.get_assets_from_release()
1717
os.environ['TWINE_USERNAME'] = '__token__'
18-
os.environ['TWINE_REPOSITORY'] = PROJECT_NAME
1918

2019
dispatch(['check', *assets])
2120

0 commit comments

Comments
 (0)