-
Notifications
You must be signed in to change notification settings - Fork 343
60 lines (58 loc) · 1.61 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build And Deploy
on:
push:
branches:
- master
- v2.2-for-blender-v2.93
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.10']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install Cython
- name: Setup Development Enviroment
uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: python setup.py build --export --exportheaders --noversioncheck
- name: Upload Builds
uses: actions/upload-artifact@v3
with:
name: Builds
path: animation_nodes*.zip
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: Download Builds
uses: actions/download-artifact@v3
with:
name: Builds
- name: Extract Branch Name
id: extract_branch_name
run: echo ::set-output name=branch::${GITHUB_REF#refs/heads/}
- name: Upload Release Assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.extract_branch_name.outputs.branch }}-cd-build
file: animation_nodes*.zip
overwrite: true
file_glob: true