feat: 尝试增加Gitee

This commit is contained in:
ikun0014
2024-11-11 23:32:27 +08:00
parent 8ca12ea7b0
commit 6b37034360
15 changed files with 66 additions and 27 deletions

View File

@@ -9,7 +9,7 @@ jobs:
build:
permissions:
contents: write
runs-on: windows-2019
runs-on: windows-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4
@@ -76,6 +76,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Gitee Release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: ikun0014
gitee_repo: Onekey
gitee_token: ${{ secrets.GITEE_TOKEN }}
gitee_tag_name: v${{ env.PACKAGE_VERSION }}
gitee_release_name: v${{ env.PACKAGE_VERSION }}
gitee_release_body: I don't know
gitee_target_commitish: main
gitee_upload_retry_times: 3
gitee_file_name: Onekey---v${{ env.PACKAGE_VERSION }}.exe
gitee_file_path: build/Onekey---v${{ env.PACKAGE_VERSION }}.exe
- name: Upload to Telegram Channel
run: |
& curl -F "chat_id=${{ secrets.TELEGRAM_TO }}" `

25
.github/workflows/sync.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Sync to Gitee
on:
push:
branches:
- main
jobs:
sync:
permissions:
contents: write
runs-on: windows-latest
steps:
- name: Sync to Gitee
uses: Yikun/hub-mirror-action@master
with:
src: github/ikunshare
dst: gitee/ikun0014
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: org
dst_account_type: user
white_list: "Onekey"
force_update: true
debug: true