-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
53 lines (47 loc) · 899 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
variables:
NUGET_PACKAGES: $CI_PROJECT_DIR/packages/
BUILD_IMAGE: eu.gcr.io/everybag-1273/dotnet/sdk-ci:7.0
stages:
- build
- publish
.base:
image: $BUILD_IMAGE
tags:
- builder
except:
- tags
.publish:
extends: .base
stage: publish
dependencies:
- Build
Build:
extends: .base
stage: build
artifacts:
untracked: false
when: on_success
expire_in: '3 days'
paths:
- nugets/
script:
- v2-autobuild
- v2-test-all net7.0
- v2-publish-nuget src/Nyris.Extensions.AspNetCore.CacheControl.Abstractions
- v2-publish-nuget src/Nyris.Extensions.AspNetCore.CacheControl
Release NuGets:
extends: .publish
only:
- master
- main
script:
- v2-push-nuget 'nugets/*.nupkg'
Unstable NuGets:
extends: .publish
when: manual
except:
- master
- main
- tags
script:
- v2-push-nuget 'nugets/*.nupkg'