mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 20:03:01 +08:00
chore(action): add auto sync script (#1109)
This commit is contained in:
parent
4a89508b50
commit
c5fb2b6143
@ -1,10 +1,9 @@
|
||||
name: Deploy mirror | 部署镜像
|
||||
name: Sync upstream branch and deploy mirror | 同步上游分支并部署镜像
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
# pull_request:
|
||||
# branches: [ main ]
|
||||
schedule:
|
||||
- cron: "0 8,20 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
@ -20,6 +19,22 @@ jobs:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Git | 设置Git
|
||||
run: |
|
||||
git config --local user.email "i@misitebao.com"
|
||||
git config --local user.name "misitebao"
|
||||
|
||||
- name: Add remote upstream repository and sync | 添加远程上游仓库并同步
|
||||
run: |
|
||||
git remote add upstream https://github.com/wailsapp/wails
|
||||
git pull -v --progress --no-rebase "upstream" master
|
||||
|
||||
- name: Push | 推送
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
|
||||
- name: Build Site | 构建网站
|
||||
run: |
|
||||
cd website &&
|
||||
|
Loading…
Reference in New Issue
Block a user