Skip to content

Commit 6a2486b

Browse files
authored
Improves release action to generate release notes. Updates changelog (#1414)
1 parent c1dcbf6 commit 6a2486b

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.github/workflows/binaries.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,21 @@ jobs:
129129
prerelease: true
130130
tag: latest
131131

132-
# Create a versioned release if this is a tag push
132+
# Generate release notes and create a versioned release if this is a tag push
133+
- if: startsWith(github.ref, 'refs/tags/v')
134+
name: Generate release notes
135+
id: release_notes
136+
uses: actions/github-script@v7
137+
with:
138+
script: |
139+
const { data: releaseNotes } = await github.rest.repos.generateReleaseNotes({
140+
owner: context.repo.owner,
141+
repo: context.repo.repo,
142+
tag_name: context.ref.replace('refs/tags/', ''),
143+
target_commitish: context.sha,
144+
});
145+
core.setOutput('notes', releaseNotes.body)
146+
133147
- if: startsWith(github.ref, 'refs/tags/v')
134148
uses: ncipollo/release-action@v1
135149
with:
@@ -139,6 +153,7 @@ jobs:
139153
makeLatest: true
140154
prerelease: false
141155
tag: ${{ github.ref_name }}
156+
body: ${{ steps.release_notes.outputs.notes }}
142157

143158
- name: Delete artefacts
144159
uses: geekyeggo/delete-artifact@v5

changelog.markdown

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@
33

44
# Nimble changelog
55

6+
## 0.20.0
7+
- Road to Nimble 1.0: New declarative parser and SAT solver as default. Still experimental and incomplete, to enable and test it set `--parser:declarative`
8+
- Introduced `testEntryPoint` configuration option
9+
- Fixed `lock` command to imply `setup` automatically
10+
- Enhanced `dump` action to support `--collect` and `--solve` flags
11+
- Added `nimbledeps` to `.gitignore` during setup
12+
- Fixed Mercurial repository support in requirements
13+
- Set default path for develop dependencies
14+
- Reverted spinner display
15+
- Added vNext lock file support
16+
- Fixed dependency satisfaction errors
17+
- Added legacy flag (defaults to `true`)
18+
- Added OpenBSD and Haiku OS support
19+
20+
## 0.18.0
21+
22+
- Implemented declarative parser with features support
23+
- Added git submodules installation with ignore flag
24+
- Fixed SAT solver reinstalling git dependencies on rebuild
25+
- Fixed lock file generating empty deps on subsequent runs
26+
- Don't recompile Nim if already compiled
27+
- Cache Nim releases for only 1 day
28+
- Moved search paths to nimble.nim.cfg
29+
- Improved CLI interactions and bash completion
30+
- Added comprehensive Nimble guide
31+
- Fixed Windows binary declarative parser
32+
33+
634
## 0.16.4
735

836
- SAT solver now fallbacks to the previous version if the latest version of the packages involved in the resolution are unsatisfiable.

0 commit comments

Comments
 (0)