diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index e414091..114b05b 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -53,6 +53,26 @@ jobs: # Push all tags git push gitlab --tags --force + - name: Mirror to GitLab (tiennm99) + run: | + # Add GitLab remote for tiennm99 + git remote add gitlab-tiennm99 git@gitlab.com:tiennm99/tiennm99.github.io.git + + # Fetch from GitLab to get information about the default branch + git fetch gitlab-tiennm99 + + # Get list of local branches + LOCAL_BRANCHES=$(git branch | grep -v "origin/" | tr -d '* ' | tr '\n' ' ') + + # Push each local branch individually to GitLab + for branch in $LOCAL_BRANCHES; do + # Push branch to GitLab + git push gitlab-tiennm99 $branch:$branch --force + done + + # Push all tags + git push gitlab-tiennm99 --tags --force + - name: Mirror to Bitbucket run: | # Add Bitbucket remote diff --git a/index.html b/index.html new file mode 100644 index 0000000..a091bd4 --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + Redirect + + + + +