diff --git a/.github/workflows/build-blender-addon.yaml b/.github/workflows/build-blender-addon.yaml new file mode 100644 index 00000000..4fb57078 --- /dev/null +++ b/.github/workflows/build-blender-addon.yaml @@ -0,0 +1,32 @@ +name: Build Blender addon + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + pip install pygit2 + ls -la + pwd + python --version + echo "REF=${{ github.event.pull_request && github.head_ref || github.ref_name }}" >> $GITHUB_ENV + - name: Build addon + run: | + python scripts/build_release.py github + ls -la + - uses: actions/upload-artifact@v3 + with: + name: blenderDMX_${{ env.REF }}.zip + path: build/ +