Skip to content

Commit

Permalink
chore: Sync code to gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverEllipsis committed Jan 6, 2025
1 parent 5c5f23a commit 9803969
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
branches:
- main
- 'releases/**'
tags:
- 'v*'

jobs:
build-and-deploy:
Expand All @@ -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: '[email protected]:alibaba/bifrostui.git'
destination-repo: '[email protected]: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
Expand Down

0 comments on commit 9803969

Please sign in to comment.