Skip to content

Commit

Permalink
Add list of commits as changelog between nightly builds
Browse files Browse the repository at this point in the history
Fixes #4646
  • Loading branch information
pierremtb committed Dec 4, 2024
1 parent 424b409 commit 2acbef7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/flip-files-to-nightly.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

export VERSION=$(date +'%-y.%-m.%-d')
export TAG="nightly-v$VERSION"
export PREVIOUS_TAG=$(git describe --tags --match="nightly-v[0-9]*" --abbrev=0)
export COMMIT=$(git rev-parse --short HEAD)

# package.json
Expand All @@ -13,7 +15,7 @@ yq -i '.publish[0].url = "https://dl.zoo.dev/releases/modeling-app/nightly"' ele
yq -i '.appId = "dev.zoo.modeling-app-nightly"' electron-builder.yml

# Release notes
echo "Nightly build $VERSION (commit $COMMIT)" > release-notes.md
./scripts/get-nightly-changelog.sh > release-notes.md

# icons
cp assets/icon-nightly.png assets/icon.png
Expand Down
5 changes: 5 additions & 0 deletions scripts/get-nightly-changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
echo "## What's Changed"
git log ${PREVIOUS_TAG}..HEAD --oneline --pretty=format:%s | grep -v Bump | awk '{print "* "toupper(substr($0,0,1))substr($0,2)}'
echo ""
echo "**Full Changelog**: https://github.com/KittyCAD/modeling-app/compare/${PREVIOUS_TAG}...${TAG}"

0 comments on commit 2acbef7

Please sign in to comment.