Skip to content

Commit 100d4b5

Browse files
author
samatrhea
committed
[Add] release.bat and dependabot
1 parent 562cc7d commit 100d4b5

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

SysML2.NET.CodeGenerator/Templates/ecore-to-html-docs.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<div class="row text-center" style="margin-top: 40px;">
4848
<img src="css/images/starion.png">
4949
<H1>OMG SysML&#174; Version 2 <a href="https://github.com/Systems-Modeling/SysML-v2-Pilot-Implementation/blob/master/org.omg.sysml/model/SysML.ecore">Ecore based Meta Model Documentation</a></H1>
50-
<H3><a href="https://github.com/Systems-Modeling/SysML-v2-Pilot-Implementation/releases/tag/2024-02">Release 2024-02</a></H3>
50+
<H3><a href="https://github.com/Systems-Modeling/SysML-v2-Pilot-Implementation/releases/tag/2024-03">Release 2024-03</a></H3>
5151
<p class="small">Powered By Starion Group, 2022-2024</p>
5252
</div>
5353
<H2 id="Enumeration">1. Enumeration Types</H2>

dependabot.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
# Enable updates for NuGet dependencies
4+
- package-ecosystem: "nuget"
5+
# Directory where your solution files are located
6+
directory: "/"
7+
# Schedule for checking updates
8+
schedule:
9+
interval: "weekly"
10+
# Do not automatically open pull requests
11+
open-pull-requests-limit: 0
12+
# Additional configuration to specify how Dependabot should handle version updates
13+
versioning-strategy: "widen"
14+
# Custom commit message options
15+
commit-message:
16+
prefix: "chore"
17+
prefix-development: "chore"
18+
include: "scope"

release.bat

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@echo off
2+
3+
IF %1.==. GOTO KeyError
4+
set apikey=%1
5+
6+
GOTO Begin
7+
8+
:KeyError
9+
ECHO.
10+
ECHO ERROR: No apikey was specified
11+
ECHO.
12+
13+
GOTO End
14+
15+
:Begin
16+
17+
ECHO.
18+
ECHO Cleaning up...
19+
ECHO.
20+
21+
IF EXIST "%~dp0\ReleaseBuilds" (
22+
rmdir "%~dp0\ReleaseBuilds" /s /q
23+
)
24+
25+
mkdir "%~dp0\ReleaseBuilds"
26+
27+
rem Cleaning Builds...
28+
dotnet clean -c Release SysML2.NET.sln
29+
30+
ECHO.
31+
ECHO Packing nugets...
32+
ECHO.
33+
34+
rem Packing New Versions...
35+
dotnet pack -c Release -o ReleaseBuilds SysML2.NET.sln
36+
37+
ECHO.
38+
ECHO Pushing to nuget.org ...
39+
ECHO.
40+
41+
dotnet nuget push ReleaseBuilds\*.nupkg -s api.nuget.org -k %apikey% --skip-duplicate
42+
43+
:End
44+
45+
ECHO.
46+
ECHO Release Completed
47+
ECHO.

0 commit comments

Comments
 (0)