-
Notifications
You must be signed in to change notification settings - Fork 160
/
.gitlab-ci.yml
22 lines (21 loc) · 1023 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
stages:
- packer-prd
packer-prd:
image: registry.cn-hangzhou.aliyuncs.com/masa/dotnet_sdk:8.0.100
stage: packer-prd
only:
- tags
script:
- rm -rf ./docs/MASA.Docs
- git config --global https.https://github.com.proxy $PROXY_GATEWAY
- git config --global http.https://github.com.proxy $PROXY_GATEWAY
- git clone -b main https://github.com/masastack/MASA.Docs.git ./docs/MASA.Docs
- dotnet build src/Masa.Blazor.SomethingSkia/Masa.Blazor.SomethingSkia.csproj -c Release
- dotnet pack src/Masa.Blazor/Masa.Blazor.csproj --no-build --include-symbols -p:PackageVersion=$CI_COMMIT_TAG
- dotnet pack src/Masa.Blazor.SomethingSkia/Masa.Blazor.SomethingSkia.csproj --no-build --include-symbols -p:PackageVersion=$CI_COMMIT_TAG
- dotnet nuget push "**/*.symbols.nupkg" -k $nugetkey -s https://api.nuget.org/v3/index.json
after_script:
- git config --global --unset https.proxy
- git config --global --unset http.proxy
- echo "" >/home/gitlab-runner/.gitconfig
retry: 2