chore: Automatic CHANGELOG generation.
This commit is contained in:
parent
417a33eb25
commit
a01f6d2322
@ -42,12 +42,18 @@ type: docker
|
|||||||
name: Publish
|
name: Publish
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: createTag
|
- name: createTagAndChangelog
|
||||||
image: ubuntu:latest
|
image: ubuntu:latest
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y git
|
- apt-get update && apt-get install -y git
|
||||||
|
- VER=$(git describe --tags --abbrev=0)
|
||||||
|
- CHANGELOG=$(git log $VER..HEAD --pretty="- %s")
|
||||||
|
- echo "**$VER**\n\n$CHANGELOG\n\n--------------------------------------------------------------------\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
|
||||||
|
- git add CHANGELOG.md
|
||||||
|
- git commit -m "Changelog for $VER"
|
||||||
- ./build.sh --publish --from-ci
|
- ./build.sh --publish --from-ci
|
||||||
- git remote add pushing https://$GITEA_USR:$GITEA_PASS@gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform.git
|
- git remote add pushing https://$GITEA_USR:$GITEA_PASS@gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform.git
|
||||||
|
- git push pushing master
|
||||||
- git push pushing --tags
|
- git push pushing --tags
|
||||||
environment:
|
environment:
|
||||||
TZ: Europe/Paris
|
TZ: Europe/Paris
|
||||||
|
Loading…
Reference in New Issue
Block a user