-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtusk.yml
37 lines (37 loc) · 1000 Bytes
/
tusk.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
tasks:
build:
usage: Build the application
run:
- dotnet build /nowarn:FS0025
docs:
usage: Build the docs
run:
- asciidoctor web/*.adoc -D docs
test:
usage: Run unit tests for entire repository
run:
- dotnet test
clean:
usage: Remove all build artifacts
run:
- dotnet clean
release:
usage: Build a release version of application
options:
version:
usage: version of application
environment: RELEASE_VERSION
default: "0.0.0"
run:
- echo $(git log -n 1 --format=%H) > VERSION
- echo ${version} >> VERSION
- dotnet build -c Release /property:Version=${version} or
- dotnet pack -c Release /property:Version=${version} or
publish:
usage: Upload the build package to nuget server
options:
apiKey:
usage: the nuget server API key
default: ''
run:
- dotnet nuget push --source 'https://nuget.org' --api-key ${apiKey} packages/*.nupkg