Compare commits

...
3 Commits
Author SHA1 Message Date
Danil Kislov 1c8ba67794 Тест сборки 2019-03-18 23:39:02 +03:00
Danil Kislov c398142cf9 Новая версия - тест 2019-03-18 23:13:08 +03:00
Danil Kislov 7927dfba8d Тест новой версии 2019-03-18 23:12:51 +03:00
4 changed files with 29 additions and 9 deletions
+1
View File
@@ -0,0 +1 @@
1.0.9
+9 -1
View File
@@ -1,11 +1,19 @@
language: csharp language: csharp
solution: src/JiraTimeBot.sln solution: src/JiraTimeBot.sln
before_deploy: "zip -j JiraTimeBot.zip src/JiraTimeBot/bin/Release/*" before_deploy:
- "mv src/JiraTimeBot/bin/Release JiraTimeBot"
- "zip JiraTimeBot.zip JiraTimeBot"
deploy: deploy:
provider: releases provider: releases
api_key: $GITHUB_OAUTH_TOKEN api_key: $GITHUB_OAUTH_TOKEN
overwrite: true
file: JiraTimeBot.zip file: JiraTimeBot.zip
skip_cleanup: true skip_cleanup: true
on: on:
tags: true tags: true
notifications:
email:
on_success: never
on_failure: always
+17 -5
View File
@@ -1,20 +1,32 @@
@echo off @echo off
for /f "tokens=1 delims=." %%G IN (semver.txt) DO set MAJOR=%%G IF %1.==. GOTO NoCommitMessage
for /f "tokens=2 delims=." %%G IN (semver.txt) DO set MINOR=%%G echo %~1
for /f "tokens=3 delims=." %%G IN (semver.txt) DO set PATCH=%%G pause
for /f "tokens=1 delims=." %%G IN (.semver.txt) DO set MAJOR=%%G
for /f "tokens=2 delims=." %%G IN (.semver.txt) DO set MINOR=%%G
for /f "tokens=3 delims=." %%G IN (.semver.txt) DO set PATCH=%%G
set VERSION_CURRENT=%MAJOR:~0,1%.%MINOR:~0,1%.%PATCH% set VERSION_CURRENT=%MAJOR:~0,1%.%MINOR:~0,1%.%PATCH%
echo Current: %VERSION_CURRENT% echo Current: %VERSION_CURRENT%
SET /a PATCH1 = %PATCH%+1 SET /a PATCH1 = %PATCH%+1
set VERSION=%MAJOR:~0,1%.%MINOR:~0,1%.%PATCH1% set VERSION=%MAJOR:~0,1%.%MINOR:~0,1%.%PATCH1%
echo %VERSION%>semver.txt echo %VERSION%>.semver.txt
echo Updating to %VERSION% echo Updating to %VERSION%
git add . git add .
git commit -m "Commit new version" git commit -m "%~1"
git tag -m "Version v%VERSION%" -a v%VERSION% git tag -m "Version v%VERSION%" -a v%VERSION%
git push origin v%VERSION% git push origin v%VERSION%
git push git push
GOTO End
pause pause
:NoCommitMessage
echo Please specify commit message: %0 "commit message"
GOTO End
:End
-1
View File
@@ -1 +0,0 @@
1.0.4