From a168f11bcc81ee36bf5b063fe10522b617a84f83 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 5 May 2025 22:57:06 +0700 Subject: [PATCH] feat: mirror --- .github/workflows/mirror.yml | 29 +++++++++++++++++++++++++++++ README.md | 4 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..3df9dbb --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,29 @@ +name: Mirror to other platforms + +on: + push: + branches: + - '**' + workflow_dispatch: + +jobs: + mirror: + runs-on: ubuntu-latest + name: Mirror Repository + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Mirror to GitLab + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: git@gitlab.com:miti99/miti99.gitlab.io.git + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + + - name: Mirror to Bitbucket + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: git@bitbucket.org:miti99/miti99.bitbucket.io.git + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} diff --git a/README.md b/README.md index bde4e9e..54f1bb1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# tiennm -Just redirect to my website \ No newline at end of file +# tiennm99.github.io +Just redirect to my website