You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REM CLEANUP: delete the staging folder and it's contents
81
+
rd /s /q "%STAGING_PATH%">nul2>&1
82
+
83
+
exit /b 0
84
+
85
+
86
+
:HELP
87
+
echo.%~nx0^<RELEASE MESSAGE^>
88
+
echo.
89
+
echo.Deploys a new release to the github repository (run from command line prompt).
90
+
echo.
91
+
echo.MAKE SURE libMBIN.Version.VERSION_STRING IS UPDATED!
92
+
echo.
93
+
echo.MAKE SURE ALL CHANGES ARE COMMITTED AND PUSHED TO THE PROJECT REPOSITORY BEFORE DEPLOYING!
94
+
echo.
95
+
echo.MAKE SURE THE PROJECT CAN BUILD SUCCESSFULLY BEFORE DEPLOYING!
96
+
echo.
97
+
echo.Parses VERSION_STRING from libMBIN.Version and converts it to a github tag.
98
+
echo.If the Prerelease version number is not 0, then the tag format is "vX.X.X-preX", otherwise just "vX.X.X"
99
+
echo.
100
+
echo.If the tag already exists in the repository, the release is configured for that commit.
101
+
echo.If not, then the latest commit on the release (%REL_BRANCH%) or prerelease (%PRE_BRANCH%) branch will be tagged, depending on the tag format.
102
+
echo.
103
+
pause
104
+
exit /b 1
105
+
106
+
:INVALID_TOKEN
107
+
echo.GITHUB_TOKEN environment variable not configured!
108
+
echo.Deploying to github requires an access token.
109
+
echo.
110
+
echo.NOTE that you must be a project collaborator to be able to deploy to %GITHUB_USER%/%GITHUB_REPO%!
111
+
echo.If you want to deploy to your own project, change the GITHUB_USER and GITHUB_REPO variables in this %~nx0 file then follow the below instructions.
112
+
echo.
113
+
echo.You must configure a GITHUB_TOKEN environment variable and set the value to your personal access token.
114
+
echo.In the Windows Start menu search for 'environment' and select 'Edit environment variables for your account'.
115
+
echo.Add the variable to the USER Environment variables, not System. Your token is private. The System variables are not!
116
+
echo.(Close this console window and open a new one for your changes to work.)
0 commit comments