소스 검색

Adding deploy & commit scripts

Sandee Lovas 6 달 전
부모
커밋
356293625f
2개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      commit-changes.sh
  2. 5 0
      deploy.sh

+ 23 - 0
commit-changes.sh

@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo "=== List of changes ==="
+git status
+echo "==========="
+
+echo
+read -p "Enter a brief description of changes: " message
+echo "Going to commit with message:"
+echo "    ${message?}"
+echo
+read -n 1 -p "Press any key to continue, or <CTRL + C> to cancel"
+
+git add .
+git commit -m "${message?}"
+
+printf "\n\n\n"
+echo "Saving changes to remote repository."
+echo "In the prompt, enter the username & password from Bitwarden for 'git.home.tarka.ca'"
+echo
+read -n 1 -p "Press any key to continue, or <CTRL + C> to cancel"
+
+git push origin main

+ 5 - 0
deploy.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cd "$(dirname "$0")"
+firebase deploy
+read -n 1 -p "Press any key to close"