-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrelease.bat
More file actions
46 lines (37 loc) · 933 Bytes
/
release.bat
File metadata and controls
46 lines (37 loc) · 933 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
36
37
38
39
40
41
42
43
44
45
46
@echo off
chcp 65001 >nul
setlocal
if "%1"=="" (
echo Usage: release.bat vX.X.X
echo Example: release.bat v1.0.2
exit /b 1
)
set VERSION=%1
echo ========================================
echo OrangePlayer Release Script
echo Version: %VERSION%
echo ========================================
echo.
echo Pushing to main...
git push origin main
echo.
echo Checking existing tag...
git tag -d %VERSION% 2>nul
git push origin :refs/tags/%VERSION% 2>nul
echo.
echo Creating tag: %VERSION%
git tag %VERSION%
echo.
echo Pushing tag...
git push origin %VERSION%
echo.
echo ========================================
echo Release Complete!
echo ========================================
echo.
echo GitHub Actions: https://github.com/706412584/orangeplayer/actions
echo JitPack: https://jitpack.io/#706412584/orangeplayer
echo.
echo Dependency:
echo implementation 'com.github.706412584:orangeplayer:%VERSION%'
endlocal