GitHub deployment

IncoCode's Avatar

IncoCode

08 Sep, 2015 05:51 PM

I'm trying to create a GitHub release using AppVeyor (it should also create a new tag), but every time I try I get a "422: Unprocessable entity" error.
appveyor.yml: http://pastebin.com/ZmNFzmdZ
https://ci.appveyor.com/project/IncoCode/accountinbank-gta5

  1. Support Staff 1 Posted by Feodor Fitsner on 08 Sep, 2015 06:26 PM

    Feodor Fitsner's Avatar

    Well, that's interesting. Nothing has been changed on AppVeyor side recently.

    Can you try creating release using GitHub API like described here: http://help.appveyor.com/discussions/problems/2971-github-deploymen...

  2. 2 Posted by IncoCode on 08 Sep, 2015 06:40 PM

    IncoCode's Avatar

    Works fine:
    {
      "url": "https://api.github.com/repos/IncoCode/AccountInBank-GTA5/releases/1783938",
      "assets_url": "https://api.github.com/repos/IncoCode/AccountInBank-GTA5/releases/1783938/assets",
      "upload_url": "https://uploads.github.com/repos/IncoCode/AccountInBank-GTA5/releases/1783938/assets{?name}",
      "html_url": "https://github.com/IncoCode/AccountInBank-GTA5/releases/tag/v0.2.1",
      "id": 1783938,
      "tag_name": "v0.2.1",
      "target_commitish": "aa950f28d9b486dcfcbac028b8d0c466dfb19c64",
      "name": "v0.2.1",
      "draft": false,
      "author": {
        "login": "IncoCode",
        "id": 6574672,
        "avatar_url": "https://avatars.githubusercontent.com/u/6574672?v=3",
        "gravatar_id": "",
        "url": "https://api.github.com/users/IncoCode",
        "html_url": "https://github.com/IncoCode",
        "followers_url": "https://api.github.com/users/IncoCode/followers",
        "following_url": "https://api.github.com/users/IncoCode/following{/other_user}",
        "gists_url": "https://api.github.com/users/IncoCode/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/IncoCode/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/IncoCode/subscriptions",
        "organizations_url": "https://api.github.com/users/IncoCode/orgs",
        "repos_url": "https://api.github.com/users/IncoCode/repos",
        "events_url": "https://api.github.com/users/IncoCode/events{/privacy}",
        "received_events_url": "https://api.github.com/users/IncoCode/received_events",
        "type": "User",
        "site_admin": false
      },
      "prerelease": false,
      "created_at": "2015-09-06T21:24:25Z",
      "published_at": "2015-09-08T18:36:20Z",
      "assets": [],
      "tarball_url": "https://api.github.com/repos/IncoCode/AccountInBank-GTA5/tarball/v0.2.1",
      "zipball_url": "https://api.github.com/repos/IncoCode/AccountInBank-GTA5/zipball/v0.2.1",
      "body": null
    }

  3. Support Staff 3 Posted by Feodor Fitsner on 08 Sep, 2015 06:43 PM

    Feodor Fitsner's Avatar

    Try creating it with your values for release and tag, like AccountInBank v1.1.0 Build X.

    Then update OAuth token in appveyor.yml with the one that just worked.

  4. 4 Posted by IncoCode on 08 Sep, 2015 07:37 PM

    IncoCode's Avatar

    Works fine using Postman.
    I took this token from appveyor.yml.

    {
      "url": "https://api.github.com/repos/IncoCode/AccountInBank-GTA5/releases/1784184",
      "assets_url": "https://api.github.com/repos/IncoCode/AccountInBank-GTA5/releases/1784184/assets",
      "upload_url": "https://uploads.github.com/repos/IncoCode/AccountInBank-GTA5/releases/1784184/assets{?name}",
      "html_url": "https://github.com/IncoCode/AccountInBank-GTA5/releases/tag/untagged-62bc5d3dc735e5ce989f",
      "id": 1784184,
      "tag_name": "1.1.1-Build-74",
      "target_commitish": "aa950f28d9b486dcfcbac028b8d0c466dfb19c64",
      "name": "AccountInBank v1.1.1 Build 74",
      "draft": true,
      "author": {
        "login": "IncoCode",
        "id": 6574672,
        "avatar_url": "https://avatars.githubusercontent.com/u/6574672?v=3",
        "gravatar_id": "",
        "url": "https://api.github.com/users/IncoCode",
        "html_url": "https://github.com/IncoCode",
        "followers_url": "https://api.github.com/users/IncoCode/followers",
        "following_url": "https://api.github.com/users/IncoCode/following{/other_user}",
        "gists_url": "https://api.github.com/users/IncoCode/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/IncoCode/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/IncoCode/subscriptions",
        "organizations_url": "https://api.github.com/users/IncoCode/orgs",
        "repos_url": "https://api.github.com/users/IncoCode/repos",
        "events_url": "https://api.github.com/users/IncoCode/events{/privacy}",
        "received_events_url": "https://api.github.com/users/IncoCode/received_events",
        "type": "User",
        "site_admin": false
      },
      "prerelease": false,
      "created_at": "2015-09-08T19:33:04Z",
      "published_at": null,
      "assets": [],
      "tarball_url": null,
      "zipball_url": null,
      "body": null
    }

  5. Support Staff 5 Posted by Feodor Fitsner on 08 Sep, 2015 07:42 PM

    Feodor Fitsner's Avatar

    OK, thanks. Looks like there is an issue indeed. I'm trying to reproduce it.

  6. Support Staff 6 Posted by Feodor Fitsner on 08 Sep, 2015 08:42 PM

    Feodor Fitsner's Avatar

    OK, found the issue. It fails because of null description though it was working before. Will deploy an update later this week.

    For workaround add description: '' to GitHub deployment settings:

    deploy:
    - provider: GitHub
      tag: $(appveyor_build_version)
      release: AccountInBank v$(appveyor_build_version)
      description: ''
      auth_token:
        secure: 2dMAnOvtqddZVDVbyP4inFMDgFPCz+1AEFJZsZ+2t/5wUGfrfRVSbGJNHA8boTvV
      artifact: AccountInBank
      draft: true
    
  7. 7 Posted by IncoCode on 08 Sep, 2015 08:51 PM

    IncoCode's Avatar

    Thanks!

  8. IncoCode closed this discussion on 08 Sep, 2015 08:51 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac