Skip to content

Commit 9637d83

Browse files
committed
Add tagging functionality
1 parent 00e514a commit 9637d83

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
dotnet-version: 6.0.301
1515

1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
with:
19-
persist-credentials: false
20-
submodules: true
19+
token: ${{ secrets.PAT_PACKAGE }}
20+
fetch-depth: 0
2121

2222
- name: Build and package
2323
run: ./build.cmd

build.cmd

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
IF "%VERSION_PATCH%"=="" (
2-
SET VERSION=0.99994
2+
SET VERSION=3.111.9
33
) ELSE (
44
SET VERSION=0.1.%VERSION_PATCH%
55
)
66

77
echo %VERSION%
88

9-
dotnet pack dotnet-ws.fsproj -o publish -c Release /p:Version=%VERSION%
9+
dotnet pack dotnet-ws.fsproj -o publish -c Release /p:Version=%VERSION%
10+
11+
if %errorlevel% neq 0 exit /b %errorlevel%
12+
13+
git tag %VERSION%
14+
15+
if %errorlevel% neq 0 exit /b %errorlevel%
16+
17+
git push origin --tags

0 commit comments

Comments
 (0)