Skip to content

Commit

Permalink
added release.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
R. S. Doiel committed Oct 24, 2024
1 parent 6fe25f7 commit 37443db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ distribute_docs:
@cp -v INSTALL.md dist/
@cp -vR man dist/

release: .FORCE installer.sh build save distribute_docs dist/Linux-x86_64 dist/Linux-aarch64 dist/macOS-x86_64 dist/macOS-arm64 dist/Windows-x86_64 dist/Windows-arm64 dist/RaspberryPiOS-arm7 dist/Linux-armv7l
release: .FORCE build version.go CITATION.cff man website distribute_docs dist/Linux-x86_64 dist/Linux-aarch64 dist/macOS-x86_64 dist/macOS-arm64 dist/Windows-x86_64 dist/Windows-arm64 dist/RaspberryPiOS-arm7 dist/Linux-armv7l
./release.bash

.FORCE:
14 changes: 14 additions & 0 deletions release.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

#
# Generate a new draft release using jq and gh
#
RELEASE_TAG="v$(jq -r .version codemeta.json)"
RELEASE_NOTES="$(jq -r .releaseNotes codemeta.json)"
make save msg="prep for ${RELEASE_TAG}, $RELEASE_NOTES}"
# Now generate a draft releas
gh release create "${RELEASE_TAG}" \
--verify-tag --draft \
--notes="${RELEASE_NOTES}" \
dist/*.zip
echo "Now goto repo release and finalize draft"

0 comments on commit 37443db

Please sign in to comment.