Skip to content

Commit

Permalink
chore: gitee action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Sep 11, 2024
1 parent f66677f commit 851b76b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sync-to-gitee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sync to Gitee

on:
push:
branches:
- master # 或者你想要同步的其他分支

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Push to Gitee
env:
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}
GITEE_USERNAME: ${{ secrets.GITEE_USERNAME }}
GITEE_EMAIL: ${{ secrets.GITEE_EMAIL }}
run: |
git config --global user.name ${GITEE_USERNAME}
git config --global user.email ${GITEE_EMAIL}
git remote add gitee https://${GITEE_USERNAME}:${GITEE_TOKEN}@gitee.com/${GITEE_USERNAME}/HivisionIDPhotos.git
git push -f gitee master:master

0 comments on commit 851b76b

Please sign in to comment.