-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.bat
More file actions
35 lines (28 loc) · 808 Bytes
/
release.bat
File metadata and controls
35 lines (28 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
REM Set the path to the JAR file
SET JAR_FILE=target\SyncCommand.jar
REM Check if the JAR file exists
IF NOT EXIST "%JAR_FILE%" (
ECHO Jar file not found.
PAUSE
EXIT /B 1
)
ECHO Jar file found.
REM Ask for the tag name
SET /P TAG_NAME=Enter the tag name:
REM Check if the TAG_NAME is empty
IF "%TAG_NAME%"=="" (
ECHO Tag name cannot be empty.
PAUSE
EXIT /B 1
)
ECHO Publishing to GitHub releases...
ECHO Command: gh release create %TAG_NAME% "%JAR_FILE%" --repo kit8379/SyncCommand --title "New Release" --notes "Release notes"
gh release create %TAG_NAME% "%JAR_FILE%" --repo kit8379/SyncCommand --title "New Release" --notes "Release notes"
IF %ERRORLEVEL% NEQ 0 (
ECHO GitHub release failed.
PAUSE
EXIT /B 1
)
ECHO Published to GitHub releases.
PAUSE