0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-03 09:25:19 +00:00

优化更新流程

This commit is contained in:
firedcto@gmail.com 2024-11-15 16:45:57 +08:00
parent 6ca8676b29
commit 0ed034ccfe
3 changed files with 32 additions and 37 deletions

View File

@ -36,6 +36,35 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Copy ok-script lib
run: |
python -m ok.update.copy_ok_folder
- name: amend git to add ok-script
run: |
git add ok/
git commit --amend --no-edit
- name: Set up coding Git credentials
env:
CODING_USERNAME: ${{ secrets.CODING_USERNAME }}
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
run: |
git config --global credential.helper store
echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > ~/.git-credentials
- name: Push to Coding.net
run: |
git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
git push coding --force
- name: Push to GitHub update
run: |
git remote add gitupdate https://github.com/ok-oldking/ok-ww-update.git
git push gitupdate --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Executable
run: |
echo "tag: ${{ steps.changes.outputs.tag }}"

View File

@ -1,34 +0,0 @@
name: Clone and Push to Coding.net
on:
push:
branches:
- '**'
jobs:
clone-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Clone GitHub repository
run: |
git clone --mirror https://github.com/ok-oldking/ok-wuthering-waves.git
cd ok-wuthering-waves.git
- name: Set up Git credentials
env:
CODING_USERNAME: ${{ secrets.CODING_USERNAME }}
CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }}
run: |
git config --global credential.helper store
echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > ~/.git-credentials
- name: Push to Coding.net
run: |
git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git
git push coding --force

View File

@ -6,7 +6,7 @@
"install_dependencies": [
"paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu123/",
"PySide6-Fluent-Widgets>=1.5.5 --no-deps",
"paddleocr==2.8.1 ok-script pycaw psutil setuptools WMI>=1.5.1 typing-extensions>=4.11.0 numpy==1.26.4 opencv-contrib-python>=4.10.0.84"
"paddleocr==2.8.1 pycaw psutil setuptools WMI>=1.5.1 typing-extensions>=4.11.0 numpy==1.26.4 opencv-contrib-python>=4.10.0.84"
],
"uninstall_dependencies": "rapidocr_openvino openvino",
"target_size": 6070947351
@ -16,9 +16,9 @@
"entry": "main.py",
"install_dependencies": [
"PySide6-Fluent-Widgets>=1.5.5 --no-deps",
"rapidocr-openvino ok-script pycaw psutil WMI>=1.5.1 typing-extensions>=4.11.0 numpy==1.26.4 opencv-contrib-python>=4.10.0.84"
"rapidocr-openvino pycaw psutil WMI>=1.5.1 typing-extensions>=4.11.0 numpy==1.26.4 opencv-contrib-python>=4.10.0.84"
],
"uninstall_dependencies": "paddleocr",
"uninstall_dependencies": "paddleocr paddlepaddle-gpu",
"target_size": 616621272
}
]