From baca09bc1c3f157fc66130f1c03f0eae66fe2c9c Mon Sep 17 00:00:00 2001 From: dhruv Date: Fri, 24 Apr 2026 12:10:23 -0700 Subject: [PATCH] update --- .env | 4 ++++ 0_upload_to_gitea.sh | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .env create mode 100755 0_upload_to_gitea.sh diff --git a/.env b/.env new file mode 100644 index 0000000..e652558 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +GITEA_USER=client_side_slave +GITEA_TOKEN=password_for_client_side_slave_5675875687 +GITEA_REPO_URL=https://github.generalinfinity.cloud/client_side_slave/test.git +GITEA_BRANCH=main \ No newline at end of file diff --git a/0_upload_to_gitea.sh b/0_upload_to_gitea.sh new file mode 100755 index 0000000..3f8c9b6 --- /dev/null +++ b/0_upload_to_gitea.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +source "$(dirname "$0")/.env" + +COMMIT_MSG="${1:-update}" + +git remote remove origin 2>/dev/null || true +git remote add origin https://${GITEA_USER}:${GITEA_TOKEN}@${GITEA_REPO_URL#https://} + +git add -A +git commit -m "$COMMIT_MSG" || echo "nothing to commit" +git branch -M main +git push -u origin ${GITEA_BRANCH} \ No newline at end of file