0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-04-24 08:25:16 +00:00
2024-11-18 01:45:40 +08:00

53 lines
1.7 KiB
YAML

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'lts'
- 'v*'
branches:
- master
jobs:
build:
name: push to update repos
runs-on: windows-latest
steps:
- name: Configure git
run: |
git config --global user.email "ok-oldking@users.noreply.github.com"
git config --global user.name "ok-oldking"
- name: Checkout source repository
uses: actions/checkout@v4
with:
token: ${{ secrets.OK_GH }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12' # Use the version of Python you need
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: test
run: |
python -m unittest discover tests
- name: Copy ok-script lib
run: |
python -m ok.update.copy_ok_folder
- name: push to ok-ww-update
run: |
python -m ok.update.push_repos --repos https://ok-oldking:${{ secrets.OK_GH }}@github.com/ok-oldking/ok-ww-update --files src ok config.py launcher.json launcher.py main.py ok-ww.exe main.py main_debug.py main_gpu.py main_gpu_debug.py assets i18n icon.png requirements.txt
- name: push to coding
run: |
python -m ok.update.push_repos --repos https://${{ secrets.CODING_USERNAME }}:${{ secrets.CODING_PASSWORD }}@e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git --files src ok config.py launcher.json launcher.py main.py ok-ww.exe main.py main_debug.py main_gpu.py main_gpu_debug.py assets i18n icon.png requirements.txt