Skip to content

Commit a5bca57

Browse files
committed
Add changelog entry
1 parent aa6583a commit a5bca57

4 files changed

Lines changed: 37 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ jobs:
4242

4343
- uses: actions/setup-dotnet@v4
4444
with:
45-
dotnet-version: 6.x
45+
dotnet-version: 8.x
4646

4747
- run: dotnet build -c Release
4848

49-
- run: dotnet pack -c Release --no-build --no-restore -o ./artifacts
50-
51-
- run: mv ./artifacts/*.nupkg ./artifacts/Neolution.Extensions.Configuration.GoogleSecrets.${{ github.run_id }}-${{ github.run_attempt }}.nupkg
49+
- run: dotnet pack -c Release --no-build --no-restore -o ./artifacts /p:PackageVersion=$(date -d "${GITHUB_RUN_TIMESTAMP}" "+%Y.%-m.%-d")-ci.${{ github.run_attempt }}${{ github.run_id }}
5250

5351
- name: Upload artifact
5452
uses: actions/upload-artifact@v4

.github/workflows/create-release.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,29 @@ name: Create Release
33
on:
44
workflow_dispatch:
55
inputs:
6-
version_type:
6+
versioning_phase:
77
type: choice
8-
description: Semantic Version Type
8+
description: Versioning Phase
9+
default: stable
910
options:
10-
- automatic
11+
- alpha
12+
- beta
13+
- rc
14+
- stable
15+
16+
bump_version_number:
17+
type: choice
18+
description: Bump Version Number
19+
default: consecutive
20+
options:
21+
- consecutive
1122
- patch
1223
- minor
1324
- major
1425

15-
pre_release:
16-
type: choice
17-
description: Stage
18-
options:
19-
- stable
20-
- rc
21-
- beta
22-
- alpha
26+
is_dry_run:
27+
type: boolean
28+
description: Dry Run
2329

2430
jobs:
2531
release-it:
@@ -43,27 +49,30 @@ jobs:
4349
git config user.name "GitHub Release Bot"
4450
git config user.email release-bot@neolution.ch
4551
46-
- name: install @release-it/keep-a-changelog
47-
run: yarn add release-it @release-it/keep-a-changelog @neolution-ch/release-it-dotnet-plugin
52+
- name: install release-it with plugins
53+
run: npm install -g release-it @release-it/keep-a-changelog
4854

4955
- name: run release-it
5056
run: |
5157
params=()
5258
53-
if [[ ${{ github.event.inputs.version_type }} != "automatic" ]]; then
54-
params+=(${{ github.event.inputs.version_type }})
59+
if [[ ${{ github.event.inputs.bump_version_number }} != "consecutive" ]]; then
60+
params+=(${{ github.event.inputs.bump_version_number }})
5561
fi
5662
57-
if [[ ${{ github.event.inputs.pre_release }} != "stable" ]]; then
58-
params+=(--preRelease=${{ github.event.inputs.pre_release }})
63+
if [[ ${{ github.event.inputs.versioning_phase }} != "stable" ]]; then
64+
params+=(--preRelease=${{ github.event.inputs.versioning_phase }})
5965
params+=(--plugins.@release-it/keep-a-changelog.keepUnreleased)
6066
params+=(--no-plugins.@release-it/keep-a-changelog.strictLatest)
6167
fi
6268
69+
if [[ ${{ github.event.inputs.is_dry_run }} == "true" ]]; then
70+
params+=(--dry-run)
71+
fi
72+
6373
params+=(--ci)
64-
params+=(--plugins.@neolution-ch/release-it-dotnet-plugin.nugetApiKey=${{ secrets.NUGET_API_KEY_NEOLUTION }})
6574
6675
echo "command: release-it ${params[@]}"
67-
yarn release-it "${params[@]}"
76+
release-it "${params[@]}"
6877
env:
6978
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ and adheres to a project-specific [Versioning](/README.md).
77

88
## [Unreleased]
99

10-
### Dependabot
10+
### Added
11+
12+
- Convention to load Google Secrets project name from environment variable `GOOGLE_SECRETS_PROJECT` if not specified in the options.
13+
- New package `Neolution.Extensions.Configuration.GoogleSecrets.AspNetCore` to reference in ASP.NET Core projects.
14+
15+
### Changed
1116

1217
- Update GitHub Actions to use the latest versions of the actions
1318

Neolution.Extensions.Configuration.GoogleSecrets.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neolution.Extensions.Config
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1A2F8802-860F-46EC-AE98-50D47A74FA91}"
1111
ProjectSection(SolutionItems) = preProject
12+
CHANGELOG.md = CHANGELOG.md
1213
.github\workflows\ci.yml = .github\workflows\ci.yml
1314
.github\workflows\create-release.yml = .github\workflows\create-release.yml
1415
README.md = README.md

0 commit comments

Comments
 (0)