tag for release?

This commit is contained in:
Jean Ouina 2020-09-17 18:01:16 +02:00
parent 314251e274
commit 490b6700b8
3 changed files with 15 additions and 3 deletions

View File

@ -25,12 +25,15 @@ jobs:
# - npm run devInstall
# - npm run build
- stage: GitHub Release
script: skip
script:
- echo "deploying..."
before_deploy:
- node ci-deploy
deploy:
provider: releases
prerelease: true
api_key: "$GH_TOKEN"
skip_cleanup: true
cleanup: false
file:
# - builds/lightcord-win32-ia32.zip
# - builds/lightcord-win32.exe

8
ci-deploy.js Normal file
View File

@ -0,0 +1,8 @@
const package = require("./package.json")
const child_process = require("child_process")
const version = package.version+"-"+Date.now()+ "-" + child_process.execSync("git rev-parse HEAD").toString().split("\n")[0].trim().slice(0, 7)
child_process.execSync("git tag "+version)
console.log(`Set up tag as ${version}`)

View File

@ -18,7 +18,8 @@
"clean:all": "node scripts/clean.js --all",
"devInstall": "npm i --save-dev --arch=ia32 electron@10.1.1 && node installSubModules.js && echo \"Everything is installed. You should be able to do npm run test to compile everything and launch.\"",
"devInstall:64": "npm i --save-dev --arch=x64 electron@10.1.1 && node installSubModules.js && echo \"Everything is installed. You should be able to do npm run test to compile everything and launch.\"",
"versions": "echo Electron: && electron -v && echo Typescript: && tsc -v"
"versions": "echo Electron: && electron -v && echo Typescript: && tsc -v",
"ci": "node ci-deploy"
},
"author": "JeanOUINA",
"license": "MIT",