forked from cljfx/cljfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.ps1
21 lines (19 loc) · 859 Bytes
/
release.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
param ([Parameter(Mandatory)]$version)
function invoke {
$exe, $argsForExe = $Args
$ErrorActionPreference = 'Continue'
try { & $exe $argsForExe } catch { Throw }
if ($LASTEXITCODE) { Throw "$exe indicated failure (exit code $LASTEXITCODE; full command: $Args)." }
}
clj -A:build -m version $version
invoke git commit -am "Release $version"
invoke git tag $version
invoke git push
invoke git push origin $version
clj -A:base:depstar cljfx-"$version".jar
clj -A:jdk8:depstar cljfx-"$version"-jdk8.jar
clj -A:jdk11:depstar cljfx-"$version"-jdk11.jar
clj -A:build -m deploy (Read-Host -Prompt "Username") (Read-Host -Prompt "Token" -AsSecureString | ConvertFrom-SecureString -AsPlainText) cljfx-"$version".jar cljfx-"$version"-jdk8.jar cljfx-"$version"-jdk11.jar
rm cljfx-"$version".jar
rm cljfx-"$version"-jdk8.jar
rm cljfx-"$version"-jdk11.jar