mirror of
https://github.com/servo/servo.git
synced 2025-06-09 09:03:23 +00:00
commit
60b642968b
2 changed files with 2 additions and 2 deletions
|
@ -241,7 +241,7 @@ def upload_docs():
|
||||||
import urllib, json, os
|
import urllib, json, os
|
||||||
root_url = os.environ["TASKCLUSTER_PROXY_URL"]
|
root_url = os.environ["TASKCLUSTER_PROXY_URL"]
|
||||||
url = root_url + "/api/secrets/v1/secret/project/servo/doc.servo.org"
|
url = root_url + "/api/secrets/v1/secret/project/servo/doc.servo.org"
|
||||||
token = json.load(urlopen(url))["secret"]["token"]
|
token = json.load(urllib.request.urlopen(url))["secret"]["token"]
|
||||||
open("/root/.git-credentials", "w").write("https://git:%s@github.com/" % token)
|
open("/root/.git-credentials", "w").write("https://git:%s@github.com/" % token)
|
||||||
""")
|
""")
|
||||||
.with_script("""
|
.with_script("""
|
||||||
|
|
|
@ -644,7 +644,7 @@ class PackageCommands(CommandBase):
|
||||||
break
|
break
|
||||||
sha256_digest.update(data)
|
sha256_digest.update(data)
|
||||||
package_hash = sha256_digest.hexdigest()
|
package_hash = sha256_digest.hexdigest()
|
||||||
package_hash_fileobj = io.BytesIO(package_hash).encode('utf-8')
|
package_hash_fileobj = io.BytesIO(package_hash.encode('utf-8'))
|
||||||
latest_hash_upload_key = '{}/servo-latest.{}.sha256'.format(nightly_dir, extension)
|
latest_hash_upload_key = '{}/servo-latest.{}.sha256'.format(nightly_dir, extension)
|
||||||
|
|
||||||
s3.upload_file(package, BUCKET, package_upload_key)
|
s3.upload_file(package, BUCKET, package_upload_key)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue