Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.15 KB

readme.md

File metadata and controls

47 lines (33 loc) · 1.15 KB

Thriftshop Deploy Key Manager

Development

  • cp .env.example .env

  • edit .env

GITHUB_ACCESS_TOKEN=

example success response

{
    "data": {
        "id": 47801810,
        "key": "ssh-rsa SOMERANDOMSTRING",
        "url": "https://api.github.com/user/keys/47801810",
        "title": "example.thriftshop.site",
        "verified": true,
        "created_at": "2020-11-14T09:06:12Z",
        "read_only": false
    }
}

example error message

HttpError: Validation Failed: {"resource":"PublicKey","code":"custom","field":"key","message":"key is already in use"}

Deploy

Deploy to Netlify

Set Your Domain In Netlify

  • Go to Settings

  • Click Change Site Name tss-fn-deploykey-manager.thriftshop.site

Production

  • make post request with Needed payload to tss-fn-deploykey-manager.thriftshop.site/api