Skip to content

Commit 894a468

Browse files
authored
Merge pull request #11 from bUnit-dev/release/v1.15
Release of new minor version v1.15
2 parents 0d554c2 + b08a1f7 commit 894a468

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

.github/workflows/prepare-release.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222

23+
- name: 🛠️ Get Changelog Entry
24+
id: changelog_reader
25+
uses: mindsers/changelog-reader-action@v2
26+
with:
27+
version: Unreleased
28+
path: ./CHANGELOG.md
29+
2330
- name: ☑ Check that release contains changes
2431
if: steps.changelog_reader.outputs.changes == ''
2532
run: |
2633
echo "::error file=CHANGELOG.md::The unreleased section in the changelog is empty. Nothing to release."
34+
exit 1
2735
2836
- name: ⚙️ Import GPG key
2937
id: import_gpg
@@ -45,9 +53,24 @@ jobs:
4553
setAllVars: true
4654

4755
- name: 🛠️ Increment version.json on main + create release branch
56+
id: versions
57+
run: |
58+
nbgv prepare-release --versionIncrement ${{ github.event.inputs.versionIncrement }}
59+
echo "::set-output name=MAIN_VERSION_COMMIT_MESSAGE::$(git log --format=%B -n 1 --skip 1)"
60+
git checkout release/v$NBGV_MajorMinorVersion
61+
echo "::set-output name=RELEASE_VERSION_COMMIT_MESSAGE::$(git log --format=%B -n 1)"
62+
63+
- name: 🛠️ Sign commits on main and release branch
4864
run: |
49-
nbgv prepare-release --versionIncrement ${{ github.event.inputs.versionIncrement }}
5065
git checkout release/v$NBGV_MajorMinorVersion
66+
git reset --soft HEAD~1
67+
git commit -S -m "${{ steps.versions.outputs.RELEASE_VERSION_COMMIT_MESSAGE }}"
68+
69+
git checkout main
70+
git reset --hard HEAD~1
71+
git reset --soft HEAD~1
72+
git commit -S -m "${{ steps.versions.outputs.MAIN_VERSION_COMMIT_MESSAGE }}"
73+
git merge -S -X ours release/v$NBGV_MajorMinorVersion
5174
5275
- name: ⏩ Push version.json updates to main
5376
run: git push origin main

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ jobs:
8181
git checkout main
8282
git merge stable
8383
git push origin main
84-
85-
- run: echo "IS_PUBLIC_RELEASE=${NBGV_PublicRelease,,}" >> ${GITHUB_ENV}
86-
84+
8785
- name: 🛠️ Create GitHub release
8886
uses: thomaseizinger/[email protected]
8987
env:
@@ -93,4 +91,4 @@ jobs:
9391
name: Release ${{ env.NBGV_SimpleVersion }}
9492
body: ${{ steps.changelog_reader.outputs.changes }}
9593
draft: false
96-
prerelease: ${{ env.IS_PUBLIC_RELEASE }}
94+
prerelease: ${{ env.NBGV_PublicRelease == 'False' }}

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Added
11+
12+
- something added
13+
1014
## [1.14.7] - 2021-04-23
1115

1216
tadat

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.14",
3+
"version": "1.15",
44
"assemblyVersion": {
55
"precision": "revision"
66
},

0 commit comments

Comments
 (0)