-
Notifications
You must be signed in to change notification settings - Fork 20
44 lines (42 loc) · 1.29 KB
/
manual_api_cache_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
name: Manual API Cache Update
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/[email protected]
with:
python-version: "3.12"
- name: Setup Project
run: |
echo "Venv setup"
python -m venv .venv
.venv\Scripts\activate
echo "Installing dependencies"
pip install -e ./
- name: Run Blender Launcher Caching
run: |
.venv\Scripts\activate
echo "Building style"
python build_style.py
echo "Set Settings"
python scripts/set_default_settings.py
echo "Building Cache"
python source/main.py --build-cache &
sleep 240
echo "Updating Cache API files"
python scripts/update_cache_api.py
- name: Commit Changes
run: |
git checkout main
git config user.name "Blender Launcher"
git config user.email "Blender-Launcher[bot]@users.noreply.github.com"
git add -A
git commit -m "Update cache files" || echo "No changes to commit"
- name: Push Changes
run: |
git push --set-upstream origin main || echo "Push failed"