This commit is contained in:
dhruv
2026-04-24 12:10:23 -07:00
parent 349a714bde
commit baca09bc1c
2 changed files with 18 additions and 0 deletions

4
.env Normal file
View File

@@ -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

14
0_upload_to_gitea.sh Executable file
View File

@@ -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}