-
Notifications
You must be signed in to change notification settings - Fork 90
39 lines (37 loc) · 983 Bytes
/
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
name: Build Extension
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-14
strategy:
matrix:
version: [4.2, 4.3]
env:
ADDON_NAME: molecularnodes
steps:
- uses: actions/checkout@v3
- uses: SebRollen/[email protected]
id: read_manifest
with:
file: '${{ env.ADDON_NAME }}/blender_manifest.toml'
field: 'version'
- uses: BradyAJohnston/setup-blender@v2
with:
version: ${{ matrix.version }}
- name: Build extension
run: |
blender -b -P build.py
mkdir artifact
mv ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}-*.zip ./artifact/.
- name: Archive addon
uses: actions/upload-artifact@v4
with:
name: ${{ env.ADDON_NAME }}-${{ github.sha }}
retention-days: 3
path: |
./artifact/*