Skip to content

Commit

Permalink
Fix upload with token (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
wisechengyi authored Aug 8, 2019
1 parent 293f249 commit 6333b39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/deploy/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,13 @@ def get_head_sha():

# Reference: https://www.jetbrains.org/intellij/sdk/docs/plugin_repository/api/plugin_upload.html
upload_cmd = 'curl -v -i ' \
'-F userName="{username}" ' \
'-F password="{password}" ' \
'--header "Authorization: Bearer {token}" ' \
'-F pluginId="{plugin_id}" ' \
'-F file=@{zip} ' \
'-F channel="{channel}" ' \
'https://plugins.jetbrains.com/plugin/uploadPlugin ' \
.format(channel=channel,
username=os.environ['USERNAME'],
password=os.environ['PASSWORD'],
token=os.environ['TOKEN'],
plugin_id=PLUGIN_ID,
zip=zip_name)

Expand Down

0 comments on commit 6333b39

Please sign in to comment.