Skip to content

Commit

Permalink
Create mirror-and-refresh.yml
Browse files Browse the repository at this point in the history
新增:镜像 Actions
  • Loading branch information
tswwe authored Feb 22, 2022
1 parent 3cdfc1d commit 41c9e12
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mirror-and-refresh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mirror this repo to Gitee and refresh Gitee pages

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
sync-and-refresh:
runs-on: ubuntu-latest
steps:
- name: Mirror a repository using SSH
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }}
with:
source-repo: "[email protected]:xkinput/xxxk-help.git"
destination-repo: "[email protected]:xkinput/xxxk-help.git"

- name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@main
with:
gitee-username: "tswwe"
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: "xkinput/xxxk-help"
branch: "master"

0 comments on commit 41c9e12

Please sign in to comment.