You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
cd /home/def/otb_billing || exit 1 |
|
set -e |
|
|
|
NEWVER="v0.5.1" |
|
STAMP="$(date '+%Y-%m-%d %H:%M:%S')" |
|
ZIPNAME="otb_billing-${NEWVER}.zip" |
|
|
|
echo "===== git status =====" |
|
git status --short || true |
|
|
|
echo "===== update VERSION =====" |
|
echo "${NEWVER}" > VERSION |
|
|
|
echo "===== update README.md =====" |
|
cp README.md "README.md.bak.${NEWVER}" |
|
|
|
python3 <<'PY' |
|
from pathlib import Path |
|
from datetime import datetime |
|
|
|
p = Path("README.md") |
|
text = p.read_text() |
|
|
|
entry = f"""## {datetime.now().strftime('%Y-%m-%d')} — v0.5.1 |
|
|
|
- Fixed crypto payment email auto-send failure |
|
- Replaced internal PDF generator call with route-based PDF fetch |
|
- Restored PDF attachments in payment emails |
|
- Improved Payments Applied layout in invoice PDF (multi-line details + rate display) |
|
- Stabilized send_payment_received_email() (removed debug raise, safe failure handling) |
|
|
|
""" |
|
|
|
p.write_text(entry + "\n" + text) |
|
print("OK: README updated") |
|
PY |
|
|
|
echo "===== git add =====" |
|
git add . |
|
|
|
echo "===== git commit =====" |
|
git commit -m "v0.5.1 - crypto email fix, PDF attachment fix, payment layout improvements" |
|
|
|
echo "===== git push =====" |
|
git push |
|
|
|
echo "===== build zip =====" |
|
cd /home/def || exit 1 |
|
zip -r "${ZIPNAME}" otb_billing >/dev/null |
|
|
|
echo "ZIP CREATED: /home/def/${ZIPNAME}"
|
|
|