         token: process.env.TOKEN
 
       Q
-        .all dirs.map ({dir, name, zip}) ->
+        .all dirs.map ({name, zip}) ->
           d = Q.defer()
           console.log "zip #{name} to #{zip}"
           zip = spawn 'zip', [zip, '-r', name]

          d.promise

        .then (id) ->
          Q
            .all dirs.map ({name, zip}) ->
              d = Q.defer()
              github.releases.uploadAsset
                owner: 'minodisk'
                repo: 'markn'
                id: id
                name: name
                filePath: zip
              , (err, res) ->
                throw err if err?
                console.log JSON.stringify res, null, 2
                d.resolve()
              d
            .then ->
              console.log 'complete to upload'

          github.releases.createRelease
            owner: 'minodisk'
            repo: 'markn'
            tag_name: 'v0.0.3' #TODO bump package.json
          , (err, res) ->
            throw err if err
            console.log JSON.stringify res, null, 2
