Skip to content

Commit

Permalink
add gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
dzyxdd committed Feb 20, 2024
1 parent d2dbd11 commit 82dbf63
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ci

on:
push:
branches: [ debug ]
branches: [ master ]
pull_request:
branches: [ master ]

Expand All @@ -29,26 +29,26 @@ jobs:
- run: ./run_scripts.sh
- run: mkdocs gh-deploy --force

# - name: Sync to Gitee
# uses: wearerequired/git-mirror-action@master
# env:
# # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
# SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
# with:
# # 注意替换为你的 GitHub 源仓库地址
# source-repo: [email protected]:dzyxdd/MixAndCall.git
# # 注意替换为你的 Gitee 目标仓库地址
# destination-repo: [email protected]:dzydoom/MixAndCall.git
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
# 注意替换为你的 GitHub 源仓库地址
source-repo: [email protected]:dzyxdd/MixAndCall.git
# 注意替换为你的 Gitee 目标仓库地址
destination-repo: [email protected]:dzydoom/MixAndCall.git

# - name: Mirror + trigger CI
# uses: SvanBoxel/gitlab-mirror-and-ci-action@master
# with:
# args: "https://gitlab.com/dzydoom/dzydoom.gitlab.io"
# env:
# FOLLOW_TAGS: "false"
# FORCE_PUSH: "true"
# GITLAB_HOSTNAME: "gitlab.com"
# GITLAB_USERNAME: "dzydoom"
# GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
# GITLAB_PROJECT_ID: "55125226"
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
with:
args: "https://gitlab.com/dzyxdd/MixAndCall"
env:
FOLLOW_TAGS: "false"
FORCE_PUSH: "true"
GITLAB_HOSTNAME: "gitlab.com"
GITLAB_USERNAME: "dzydoom"
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
GITLAB_PROJECT_ID: "55127930"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 82dbf63

Please sign in to comment.