-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
36 lines (30 loc) · 862 Bytes
/
.gitlab-ci.yml
File metadata and controls
36 lines (30 loc) · 862 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
before_script:
- "git clean -fdxq"
- "git submodule sync --recursive"
- "git submodule foreach --recursive git reset --hard"
- "git submodule update --init --recursive"
Test Deployment:
tags:
- windows
- dotnet
except:
- master
script:
- "cd .\\src"
- "dotnet restore SDL.csproj"
- "powershell.exe -file \"..\\ReplaceVersion.ps1\""
# - "powershell.exe -file \"..\\SignBuild.ps1\" 1" -- Requires --no-build
- "dotnet pack -c Debug -o .\\"
Production Deployment:
tags:
- windows
- dotnet
only:
- master
script:
- "cd .\\src"
- "dotnet restore SDL.csproj"
- "powershell.exe -file \"..\\ReplaceVersion.ps1\""
# - "powershell.exe -file \"..\\SignBuild.ps1\" 0"
- "dotnet pack -c Release -o .\\"
- "dotnet nuget push *.nupkg -k %NUGET_API_KEY% -s \"https://www.nuget.org\""