Compare commits

..
7 Commits
4 changed files with 29 additions and 9 deletions
+1
View File
@@ -0,0 +1 @@
1.0.10
+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:
- "zip -j JiraTimeBot.zip src/JiraTimeBot/bin/Release/*"
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