File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ resource_types :
3
+ - name : slack-notification
4
+ type : docker-image
5
+ source :
6
+ repository : cfcommunity/slack-notification-resource
7
+
2
8
resources :
9
+ - name : notify
10
+ type : slack-notification
11
+ source :
12
+ url : ((slack-webhook))
13
+
3
14
- name : fauna-csharp-repository
4
15
type : git
5
16
icon : github
37
48
file : fauna-csharp-repository/concourse/tasks/publish.yml
38
49
params :
39
50
NUGET_API_KEY : ((nuget_api_key))
51
+ on_success :
52
+ put : notify
53
+ params :
54
+ text_file : slack-message/publish
40
55
41
56
- task : publish-docs
42
57
file : fauna-csharp-repository/concourse/tasks/publish-docs.yml
Original file line number Diff line number Diff line change @@ -4,9 +4,14 @@ set -eou
4
4
5
5
cd ./fauna-csharp-repository
6
6
7
+ apk add xmlstarlet
8
+ PACKAGE_VERSION=$( xml sel -t -v " /Project/PropertyGroup/Version" ./FaunaDB.Client/FaunaDB.Client.csproj)
9
+
7
10
dotnet clean
8
11
dotnet restore
9
12
dotnet build ./FaunaDB.Client --configuration Release
10
13
dotnet pack ./FaunaDB.Client/FaunaDB.Client.csproj --no-build --no-restore --include-symbols -p:SymbolPackageFormat=snupkg --include-source --configuration Release
11
14
12
15
dotnet nuget push ./FaunaDB.Client/bin/Release/* .nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY
16
+
17
+ echo " faunadb-csharp@$PACKAGE_VERSION has been published into nuget [fyi <@ewan.edwards>]" > ../slack-message/publish
Original file line number Diff line number Diff line change @@ -12,5 +12,8 @@ params:
12
12
inputs :
13
13
- name : fauna-csharp-repository
14
14
15
+ outputs :
16
+ - name : slack-message
17
+
15
18
run :
16
19
path : ./fauna-csharp-repository/concourse/scripts/publish.sh
You can’t perform that action at this time.
0 commit comments