File tree Expand file tree Collapse file tree 4 files changed +31
-6
lines changed
Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Original file line number Diff line number Diff 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
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
Original file line number Diff line number Diff line change 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 :
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' }}
Original file line number Diff line number Diff 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
1216tadat
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments