-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (34 loc) · 1.09 KB
/
Addon Build.yaml
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
name: Experimental Branch Auto Build
on:
push:
branches:
- Experimental
pull_request:
branches:
- Experimental
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10.13'
- name: Install required packages
run: |
python -m pip install --upgrade pip
- name: Add warning to __init__.py
run: |
BUILD_DATE=$(TZ='Asia/Novosibirsk' date +"%d.%m.%Y %H:%M:%S")
sed -i "15 a\ \"warning\": \"This is Experimental Branch Build ($BUILD_DATE)\"," "MiBlend_Source/__init__.py"
- name: Prepare Blender Addon
run: |
mkdir -p "output/MiBlend Experimental Auto Build/MiBlend_Source"
cp -r "MiBlend_Source"/* "output/MiBlend Experimental Auto Build/MiBlend_Source/"
- name: Upload folder as artifact
uses: actions/upload-artifact@v4
with:
name: MiBlend Experimental Auto Build
path: "output/MiBlend Experimental Auto Build"