ci: take the release notes from the changelog
This commit is contained in:
1 parent
b93d0f5f1e
commit
4fffba005d
2 files changed
+16
-6
No files matched your search
@@ -33,6 +33,10 @@ jobs:
|
|||||||
- name: Check the tag against the Makefile
|
- name: Check the tag against the Makefile
|
||||||
run: packaging/check-version.sh "${{ github.ref_name }}"
|
run: packaging/check-version.sh "${{ github.ref_name }}"
|
||||||
|
|
||||||
|
- name: Check CHANGELOG.md has this release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
run: .github/release-notes.sh --title "${{ github.ref_name }}"
|
||||||
|
|
||||||
- run: packaging/build-deb.sh
|
- run: packaging/build-deb.sh
|
||||||
|
|
||||||
- name: Look inside what was built
|
- name: Look inside what was built
|
||||||
@@ -106,6 +110,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
with:
|
||||||
|
# All tags, for the link to the changes since the last release.
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: actions/download-artifact@v8
|
- uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
@@ -117,9 +124,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
|
.github/release-notes.sh "${{ github.ref_name }}" > notes.md
|
||||||
gh release create "${{ github.ref_name }}" \
|
gh release create "${{ github.ref_name }}" \
|
||||||
--title "${{ github.ref_name }}" \
|
--title "$(.github/release-notes.sh --title "${{ github.ref_name }}")" \
|
||||||
--generate-notes \
|
--notes-file notes.md \
|
||||||
incoming/*.deb incoming/*.rpm \
|
incoming/*.deb incoming/*.rpm \
|
||||||
|| gh release upload "${{ github.ref_name }}" \
|
|| gh release upload "${{ github.ref_name }}" \
|
||||||
incoming/*.deb incoming/*.rpm --clobber
|
incoming/*.deb incoming/*.rpm --clobber
|
||||||
|
|||||||
+6
-4
@@ -29,12 +29,14 @@ argument.
|
|||||||
## Making a release
|
## Making a release
|
||||||
|
|
||||||
1. Bump `VERSION` in the Makefile.
|
1. Bump `VERSION` in the Makefile.
|
||||||
2. Commit, then `git tag vX.Y.Z && git push --tags`.
|
2. Add the release to `CHANGELOG.md`, in the format CLAUDE.md describes.
|
||||||
|
3. Commit, then `git tag vX.Y.Z && git push --tags`.
|
||||||
|
|
||||||
The `release` workflow builds both packages in a Debian and a Fedora container,
|
The `release` workflow builds both packages in a Debian and a Fedora container,
|
||||||
refuses the tag if it disagrees with the Makefile, attaches the packages to a
|
refuses the tag if it disagrees with the Makefile or has no changelog entry,
|
||||||
GitHub release, and adds them to the APT and RPM repositories on the `gh-pages`
|
attaches the packages to a GitHub release with the entry as its notes, and adds
|
||||||
branch. Nothing else has to be done by hand.
|
them to the APT and RPM repositories on the `gh-pages` branch. Nothing else has
|
||||||
|
to be done by hand.
|
||||||
|
|
||||||
## Trying the release path first
|
## Trying the release path first
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user