File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
.build/mkdocs_markmap_build Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2323class 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments