-
Notifications
You must be signed in to change notification settings - Fork 13
128 lines (108 loc) · 5.61 KB
/
QwackMainBuild.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: Qwack Main Build
on:
workflow_dispatch:
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@main
with:
submodules: 'true'
- name: 'Set environment var'
run: VERSION=$(cat ./version.txt) && echo "version=$VERSION" >> $GITHUB_ENV
- name: 'Check environment var'
run: echo "${{ env.version}}"
- name: Restore DotNet
run: dotnet restore
working-directory: '.'
- name: Pack Dates
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Dates'
env:
VERSION: ${{ env.version }}
- name: Pack Core
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Core'
env:
VERSION: ${{ env.version }}
- name: Pack Math
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Math'
env:
VERSION: ${{ env.version }}
- name: Pack Interpolation
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Math.Interpolation'
env:
VERSION: ${{ env.version }}
- name: Pack Options
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Options'
env:
VERSION: ${{ env.version }}
- name: Pack Paths
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Paths'
env:
VERSION: ${{ env.version }}
- name: Pack Providers
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Providers'
env:
VERSION: ${{ env.version }}
- name: Pack Transport
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Transport'
env:
VERSION: ${{ env.version }}
- name: Pack Futures
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Futures'
env:
VERSION: ${{ env.version }}
- name: Pack Models
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Models'
env:
VERSION: ${{ env.version }}
- name: Pack Utils
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Utils'
env:
VERSION: ${{ env.version }}
- name: Pack Random
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Random'
env:
VERSION: ${{ env.version }}
- name: Pack Storage
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Storage'
env:
VERSION: ${{ env.version }}
- name: Pack Serialization
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
working-directory: './src/Qwack.Serialization'
env:
VERSION: ${{ env.version }}
- name: Push
run: |
dotnet nuget push ./Qwack.Dates/Qwack.Dates.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Core/Qwack.Core.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Math/Qwack.Math.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Math.Interpolation/Qwack.Math.Interpolation.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Options/Qwack.Options.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Paths/Qwack.Paths.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Models/Qwack.Models.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Random/Qwack.Random.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Providers/Qwack.Providers.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Utils/Qwack.Utils.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Futures/Qwack.Futures.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Transport/Qwack.Transport.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Storage/Qwack.Storage.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
dotnet nuget push ./Qwack.Serialization/Qwack.Serialization.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_APIKEY} --skip-duplicate
working-directory: './src/'
env:
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
VERSION: ${{ env.version }}