Skip to content

Commit

Permalink
chore(workflows): make CI/CD look a little bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
4x8Matrix committed Jun 30, 2024
1 parent 069de6d commit 66c26b8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .lune/deploy.luau
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ multiformContent ..= `{fs.readFile(artifact)}\r\n`

multiformContent ..= `--{multiformContentBoundary}--\r\n`

print(net.request({
local request = net.request({
url = "https://preview.metrik.app/api/sdk/upload-artifact",
method = "POST",
headers = {
["Authorization"] = `Bearer {authorization}`,
["content-type"] = `multipart/form-data; boundary={multiformContentBoundary}`
},
body = multiformContent
}))
})

local body = net.jsonDecode(request.body)

print(string.rep(`-`, 24))
print(body.url)
print(string.rep(`-`, 24))

0 comments on commit 66c26b8

Please sign in to comment.