diff options
author | Luca Casonato <hello@lcas.dev> | 2021-07-01 15:44:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 15:44:44 +0200 |
commit | 32b9aa5720dfdedbf0e0c2f3ae0fadb80994849e (patch) | |
tree | 45a86a085403e629d4960f08d8ffb5ec26a06b42 /tools/upload_wptfyi.js | |
parent | e9e286a56e061bcd346c11175c2685ca026c8771 (diff) |
build: switch to wpt.fyi prod (#11201)
Diffstat (limited to 'tools/upload_wptfyi.js')
-rw-r--r-- | tools/upload_wptfyi.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/upload_wptfyi.js b/tools/upload_wptfyi.js index 862523167..097f5a512 100644 --- a/tools/upload_wptfyi.js +++ b/tools/upload_wptfyi.js @@ -4,8 +4,8 @@ import { gzip } from "https://deno.land/x/compress@v0.3.8/gzip/mod.ts"; -const user = Deno.env.get("WPT_FYI_STAGING_USER"); -const password = Deno.env.get("WPT_FYI_STAGING_PW"); +const user = Deno.env.get("WPT_FYI_USER"); +const password = Deno.env.get("WPT_FYI_PW"); const fromRawFile = Deno.args.includes("--from-raw-file"); @@ -27,7 +27,7 @@ if (fromRawFile) { const basicAuthToken = btoa(`${user}:${password}`); -const resp = await fetch("https://staging.wpt.fyi/api/results/upload", { +const resp = await fetch("https://wpt.fyi/api/results/upload", { method: "POST", body: form, headers: { @@ -47,7 +47,7 @@ if (!resp.ok) { if (!fromRawFile && Deno.args.includes("--ghstatus")) { const githubToken = Deno.env.get("GITHUB_TOKEN"); const taskId = body.split(" ")[1]; - const url = `https://staging.wpt.fyi/results/?run_id=${taskId}`; + const url = `https://wpt.fyi/results/?run_id=${taskId}`; const commit = Deno.args[0]; const resp = await fetch( `https://api.github.com/repos/denoland/deno/statuses/${commit}`, |