-
Notifications
You must be signed in to change notification settings - Fork 14
30 lines (28 loc) · 943 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: update
on: [push]
jobs:
sync:
if: ${{ github.ref == 'refs/heads/gh-pages' }}
strategy:
matrix:
remote:
- name: coding
url: [email protected]:Fsu0413/QtCompile.git
- name: osdn
url: [email protected]:/gitroot/fsu0413-qtbuilds/QtBuilds.git
- name: gitcode
url: [email protected]:Fsu0413/QtCompile.git
- name: sourceforge
url: ssh://[email protected]/p/fsu0413-qtbuilds/QtCompile
- name: gitee
url: [email protected]:Fsu0413/QtCompile.git
name: ${{ matrix.remote.name }}
runs-on: ubuntu-latest
steps:
- uses: codions/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SOURCE_REPO: [email protected]:${{ github.repository }}.git
SOURCE_BRANCH: gh-pages
DESTINATION_REPO: ${{ matrix.remote.url }}
DESTINATION_BRANCH: gh-pages