Files
flipper/scripts/public-ios-release.json
Pascal Hartig 45d1abf2d4 Attempt to upgrade release scripts
Summary:
We got a heads-up from the GitHub support that the way we use our
access tokens is deprecated and will soon stop working.

More details here: https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/

Reviewed By: jknoxville

Differential Revision: D23003718

fbshipit-source-id: e2a493be97cdc81161791a1bb07864853ca5049c
2020-08-11 11:16:31 -07:00

36 lines
1.1 KiB
JSON

{
"command": "SandcastleUniversalCommand",
"user": "__USER__",
"args": {
"name": "Release public Flipper build",
"oncall": "danielbuechele",
"steps": [
{
"name": "Clone from GitHub",
"required": true,
"shell":
"git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/flipper.git ../xplat/sonar-public"
},
{
"name": "Publish to github",
"required": true,
"shell":
"curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v__VERSION__\", \"target_commitish\": \"master\", \"name\": \"v__VERSION__\", \"body\": \"\", \"draft\": false, \"prerelease\": true}' -H 'Authorization: token '$(secrets_tool get FLIPPER_GITHUB_TOKEN) https://api.github.com/repos/facebook/flipper/releases",
"shell_type": "SandcastleLocalShell"
}
]
},
"alias": "flipper_release_ios_public_build",
"capabilities": {
"vcs": "fbcode-fbsource",
"type": "lego-mac"
},
"hash": "master",
"report": [
{
"type": "email",
"report_to_owner": true
}
]
}