From 980396908f1118aa15088be2cdb30f612f38bee5 Mon Sep 17 00:00:00 2001 From: NeverEllipsis Date: Mon, 6 Jan 2025 20:05:43 +0800 Subject: [PATCH] chore: Sync code to gitlab --- .github/workflows/deploy.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1697da41..3a26d0be 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,8 @@ on: branches: - main - 'releases/**' + tags: + - 'v*' jobs: build-and-deploy: @@ -30,7 +32,24 @@ jobs: - name: Build Docs run: pnpm docs:build + - name: Check Tag for Beta + id: check_tag + run: | + TAG=$(echo ${GITHUB_REF} | sed 's|refs/tags/||') + echo "TAG=${TAG}" >> $GITHUB_ENV + echo "Current TAG: ${TAG}" + + - name: Sync to GitLab for Beta + if: contains(env.TAG, 'beta') == true + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.BUI_BETA_SSH_PRIVATE_KEY }} + with: + source-repo: 'git@github.com:alibaba/bifrostui.git' + destination-repo: 'git@gitlab.alibaba-inc.com:alipay-movie-client/bifrostui-pre-release.git' + - name: Deploy to GitHub Pages + if: contains(env.TAG, 'beta') == false uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages