Skip to content

Commit 5db3466

Browse files
authored
Merge pull request #12 from bUnit-dev/release/v1.16
Release of new minor version v1.16
2 parents 75e99cc + ab5949d commit 5db3466

File tree

8 files changed

+16
-5
lines changed

8 files changed

+16
-5
lines changed

.github/workflows/prepare-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
git checkout release/v$NBGV_MajorMinorVersion
6161
echo "::set-output name=RELEASE_VERSION_COMMIT_MESSAGE::$(git log --format=%B -n 1)"
6262
63+
# Workaround since nbgv prepare-release does not sign commits.
64+
# This undo's the commits, keeps the version changes, and commits again with signing
65+
# with the saved commit messages from previous step.
66+
# See: https://github.com/dotnet/Nerdbank.GitVersioning/issues/594
6367
- name: 🛠️ Sign commits on main and release branch
6468
run: |
6569
git checkout release/v$NBGV_MajorMinorVersion

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ on:
77
- stable
88
types:
99
- closed
10+
paths-ignore:
11+
- 'docs/**'
1012

1113
workflow_dispatch:
1214

1315
jobs:
1416
release:
1517
name: 🎁 Publish new release
16-
if: github.ref == 'refs/heads/stable' || github.event.pull_request.merged == true # only merged pull requests must trigger this job
18+
# Only run on manual dispatch or on merged 'release-' pull requests
19+
if: github.ref == 'refs/heads/stable' ||
20+
github.event.pull_request.merged == true && startsWith(github.ref, 'refs/heads/release-')
1721
runs-on: ubuntu-latest
1822
steps:
1923

@@ -60,7 +64,7 @@ jobs:
6064
dotnet-version: '5.0.x'
6165

6266
- name: 🛠️ Building library in release mode
63-
run: dotnet pack -c release -p:ContinuousIntegrationBuild=true -p:PublicRelease=true
67+
run: dotnet pack src/ -c release -p:ContinuousIntegrationBuild=true
6468

6569
- name: 🛠️ Upload library to NuGet.org repository
6670
run: echo "TODO"
@@ -73,13 +77,13 @@ jobs:
7377
- name: 🛠️ Commit CHANGELOG.md to stable branch
7478
run: |
7579
git add CHANGELOG.md
76-
git commit -m "Updated CHANGELOG.md for ${{ env.NBGV_SimpleVersion }} release"
80+
git commit -S -m "Updated CHANGELOG.md for ${{ env.NBGV_SimpleVersion }} release"
7781
git push origin stable
7882
7983
- name: ⏩ Merge stable with main
8084
run: |
8185
git checkout main
82-
git merge stable
86+
git merge -S stable
8387
git push origin main
8488
8589
- name: 🛠️ Create GitHub release

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
testing
11+
1012
## [1.15.18] - 2021-04-23
1113

1214
### Added

docs/hello.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test
File renamed without changes.
File renamed without changes.

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.15",
3+
"version": "1.16",
44
"assemblyVersion": {
55
"precision": "revision"
66
},

0 commit comments

Comments
 (0)