Add list of commits as changelog between nightly builds (#4654)
This commit is contained in:
		| @ -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 | ||||
| @ -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 | ||||
|  | ||||
							
								
								
									
										5
									
								
								scripts/get-nightly-changelog.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								scripts/get-nightly-changelog.sh
									
									
									
									
									
										Executable file
									
								
							| @ -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}" | ||||
		Reference in New Issue
	
	Block a user