Skip to content

Commit

Permalink
推送到阿里云仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
luoweiqiang9527 committed Aug 21, 2023
1 parent 05719ad commit 65e5193
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def deploy(jar,
classifier = None,
ossrh_username = os.getenv('OSSRH_USERNAME'),
ossrh_password = os.getenv('OSSRH_PASSWORD'),
repo="https://s01.oss.sonatype.org/service/local/staging"):
repo="https://packages.aliyun.com/maven/repository/2228570-release-Kl0fQD/"):
makedirs(tempdir)
settings = tempdir + "/settings.xml"
with open(settings, 'w') as f:
Expand All @@ -183,7 +183,7 @@ def deploy(jar,
'--settings', settings,
'-Dossrh.username=' + ossrh_username,
'-Dossrh.password=' + ossrh_password,
'-Durl=' + repo + "/deploy/maven2/",
'-Durl=' + repo,
'-DrepositoryId=ossrh'
]

Expand All @@ -204,7 +204,7 @@ def deploy(jar,

def release(ossrh_username = os.getenv('OSSRH_USERNAME'),
ossrh_password = os.getenv('OSSRH_PASSWORD'),
repo="https://s01.oss.sonatype.org/service/local/staging"):
repo="https://packages.aliyun.com/maven/repository/2228570-release-Kl0fQD/"):
headers = {
'Accept': 'application/json',
'Authorization': 'Basic ' + base64.b64encode((ossrh_username + ":" + ossrh_password).encode('utf-8')).decode('utf-8'),
Expand Down

0 comments on commit 65e5193

Please sign in to comment.