Skip to content

Commit ff20c82

Browse files
authored
Merge pull request #174 from digipost/set-assembly-version-on-release
Set assembly version to '<major>.0.0 when releasing new version.
2 parents 273cd8b + bbad663 commit ff20c82

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,24 @@ jobs:
3030
run: dotnet test --no-restore --verbosity normal
3131
- name: Set release version
3232
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
33+
- name: Set assembly version to major semver
34+
run: echo ::set-env name=ASSEMBLY_VERSION::$(echo ${GITHUB_REF:10} | cut -d '.' -f 1).0.0
35+
- name: Print assembly version
36+
run: echo $ASSEMBLY_VERSION
3337
- name: Pack nupkg
34-
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client
38+
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION -p:AssemblyVersion=$ASSEMBLY_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client
3539
- name: Pack nupkg
36-
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Common
40+
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION -p:AssemblyVersion=$ASSEMBLY_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Common
3741
- name: Pack nupkg
38-
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Docs
42+
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION -p:AssemblyVersion=$ASSEMBLY_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Docs
3943
- name: Pack nupkg
40-
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Inbox
44+
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION -p:AssemblyVersion=$ASSEMBLY_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Inbox
4145
- name: Pack nupkg
42-
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Resources
46+
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION -p:AssemblyVersion=$ASSEMBLY_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Resources
4347
- name: Pack nupkg
44-
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Scripts
48+
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION -p:AssemblyVersion=$ASSEMBLY_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Scripts
4549
- name: Pack nupkg
46-
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Send
50+
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION -p:AssemblyVersion=$ASSEMBLY_VERSION --configuration Release --no-build --output digipost/packed Digipost.Api.Client.Send
4751
- name: Push Client to NuGet
4852
env:
4953
NUGET_API_KEY: ${{ secrets.nugetApiKey }}

docs/Gemfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (6.0.3)
4+
activesupport (6.0.3.1)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
@@ -28,12 +28,12 @@ GEM
2828
execjs (2.7.0)
2929
faraday (1.0.1)
3030
multipart-post (>= 1.2, < 3)
31-
ffi (1.12.2)
31+
ffi (1.13.1)
3232
forwardable-extended (2.6.0)
3333
gemoji (3.0.1)
34-
github-pages (204)
34+
github-pages (206)
3535
github-pages-health-check (= 1.16.1)
36-
jekyll (= 3.8.5)
36+
jekyll (= 3.8.7)
3737
jekyll-avatar (= 0.7.0)
3838
jekyll-coffeescript (= 1.1.1)
3939
jekyll-commonmark-ghpages (= 0.1.6)
@@ -72,21 +72,21 @@ GEM
7272
mercenary (~> 0.3)
7373
minima (= 2.5.1)
7474
nokogiri (>= 1.10.4, < 2.0)
75-
rouge (= 3.13.0)
75+
rouge (= 3.19.0)
7676
terminal-table (~> 1.4)
7777
github-pages-health-check (1.16.1)
7878
addressable (~> 2.3)
7979
dnsruby (~> 1.60)
8080
octokit (~> 4.0)
8181
public_suffix (~> 3.0)
8282
typhoeus (~> 1.3)
83-
html-pipeline (2.12.3)
83+
html-pipeline (2.13.0)
8484
activesupport (>= 2)
8585
nokogiri (>= 1.4)
8686
http_parser.rb (0.6.0)
8787
i18n (0.9.5)
8888
concurrent-ruby (~> 1.0)
89-
jekyll (3.8.5)
89+
jekyll (3.8.7)
9090
addressable (~> 2.4)
9191
colorator (~> 1.0)
9292
em-websocket (~> 0.5)
@@ -202,7 +202,7 @@ GEM
202202
jekyll (>= 3.5, < 5.0)
203203
jekyll-feed (~> 0.9)
204204
jekyll-seo-tag (~> 2.1)
205-
minitest (5.14.0)
205+
minitest (5.14.1)
206206
multipart-post (2.1.1)
207207
nokogiri (1.10.9)
208208
mini_portile2 (~> 2.4.0)
@@ -215,7 +215,7 @@ GEM
215215
rb-fsevent (0.10.4)
216216
rb-inotify (0.10.1)
217217
ffi (~> 1.0)
218-
rouge (3.13.0)
218+
rouge (3.19.0)
219219
ruby-enum (0.8.0)
220220
i18n
221221
rubyzip (2.3.0)

0 commit comments

Comments
 (0)