'gitlab-runner "FATAL: invalid argument" error

I developed an electron app. I want to send the latest version to Gitlaba and perform automatic update.

my package.json

{
  "name": "kantar-tekillestirme",
  "productName": "kantar",
  "version": "2.0.0",
  "description": "A minimal Electron application",
  "main": "main.js",
  "scripts": {
    "start": "electron .",
    "pack": "electron-builder --dir",
    "build": "electron-builder --win",
    "build-all": "electon-builder --win",
    "build-dev": "electron-builder build --win --publish never",
    "deploy": "electron-builder build --win --publish always",
    "release": "electron-builder --win --publish always",
    "dist:win": "electron-builder -w",
    "dist": "electron-builder",
    "postinstall": "",
    "install": "node-gyp install"
  },
  "repository": {
     "type": "git",
     "url": "git+https://my.special.domain/kantar/kantar-tekillestirme",
     "release": "latest"
  },
  "build": {
    "appId": "com.kantar.updateexample",
    "artifactName": "${productName}-${version}.${ext}",
    "extraFiles": [
      "files"
    ],
    "publish": [
      {
        "provider": "generic",
        "url": "https://my.special.domain"
      }
    ],
    "win": {
       "target": "nsis",
       "icon": "./files/icon/kantar.png",
       "verifyUpdateCodeSignature": false
    },
    "nsis": {
      "allowElevation": false,
      "allowToChangeInstallationDirectory": true,
      "oneClick": false,
      "perMachine": true
    }
  },
  "author": "GitHub",
  "license": "CC0-1.0",      
 }

I removed some of the fields and he wouldn't let me publish them all

I'm sharing my "gitlab-ci" file. copied the gitlab-ci file from here

Here's the mistake I made

enter image description here

Why am I encountering this error. How do I release a new version? Can you help me?




Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source