-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (44 loc) · 1.46 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: update
on: [push]
jobs:
sync:
if: ${{ github.ref == 'refs/heads/ge-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: ${{ 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: ge-pages
DESTINATION_REPO: ${{ matrix.remote.url }}
DESTINATION_BRANCH: ge-pages
gitee:
if: ${{ github.ref == 'refs/heads/ge-pages' }}
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: ge-pages
DESTINATION_REPO: [email protected]:Fsu0413/QtCompile.git
DESTINATION_BRANCH: ge-pages
# - uses: yanglbme/gitee-pages-action@main
# with:
# gitee-username: Fsu0413
# gitee-password: ${{ secrets.GITEE_PASSWORD }}
# gitee-repo: Fsu0413/QtCompile
# branch: ge-pages
# https: true