-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
TAGNAME="archive" | ||
TAGDATE=$(date +%d-%m-%Y) | ||
TAGNAME=$(date +%Y.%m.%d) | ||
TAGDATE=$(date +%Y-%m-%d) | ||
|
||
echo "Initializing submodules..." | ||
git submodule init > /dev/null 2>&1 | ||
git submodule init | ||
|
||
echo "Updating submodules from remote repositories..." | ||
git submodule update --recursive --remote > /dev/null 2>&1 || true | ||
git submodule update --recursive --remote | ||
sleep 10 | ||
|
||
echo "Committing changes..." | ||
git commit -a -m "Updated all HUDs to the latest releases." > /dev/null 2>&1 | ||
git commit -a -m "Updated all HUDs to the latest releases." | ||
|
||
echo "Removing existing Git tag..." | ||
git tag --delete "$TAGNAME" > /dev/null 2>&1 || true | ||
git push --delete origin "$TAGNAME" > /dev/null 2>&1 || true | ||
|
||
echo "Adding new tag..." | ||
git tag -s "$TAGNAME" -m "Release of $TAGDATE." > /dev/null 2>&1 | ||
git tag -s "$TAGNAME" -m "Release of $TAGDATE." | ||
|
||
echo "Pushing changes..." | ||
git push -u origin master > /dev/null 2>&1 | ||
git push -u origin --tags > /dev/null 2>&1 | ||
git push -u origin master | ||
git push -u origin --tags | ||
|
||
echo "Completed." |