Skip to content

Commit

Permalink
wip build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Jan 19, 2024
1 parent 690566e commit d8910bb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
38 changes: 37 additions & 1 deletion .github/workflows/build-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: "build additional tools"

on:
push:
paths:
- dcc_plugins*/**
- src/lifeblood_client/**
branches:
- dev
pull_request:
paths:
- dcc_plugins*/**
- src/lifeblood_client/**
branches:
- dev

Expand Down Expand Up @@ -41,4 +47,34 @@ jobs:
with:
name: blender
path:
dcc_plugins/lifeblood_addon.zip
dcc_plugins/blender_lifeblood_addon.zip

make_tool_release:
needs:
- build_houdini_tools
- build_blender_tools
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: repo
- run: |
git config --global user.email "actions@github.com"
git config --global user.name "Tools auto tag"
git checkout ${{ github.sha }}
echo "TAG=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV
git tag -a $TAG -m 'tools autobuild update'
git push origin $TAG
working-directory: ./repo
- uses: actions/download-artifact@v4
with:
path:
tools/*
- run: |
ls -alR tools
echo tag would be $TAG
- uses: softprops/action-gh-release@v1
with:
files:
tools/*/*
2 changes: 1 addition & 1 deletion dcc_plugins_workspace/build_blender.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rsync -arhv --exclude=__pycache__ --exclude="*.pyc" blender/blender_path $OUT
rsync -arhv --exclude=__pycache__ --exclude="*.pyc" ../src/lifeblood_client $OUT/blender_path/addons/scripts
rsync -arhv --exclude=__pycache__ --exclude="*.pyc" ../src/lifeblood_client $OUT/blender_path/addons/lifeblood_plugin
pushd ../dcc_plugins/blender/blender_path/addons
zip -r ../../../lifeblood_addon.zip lifeblood_plugin --exclude "*__pycache__/" --exclude "*.pyc"
zip -r ../../../blender_lifeblood_addon.zip lifeblood_plugin --exclude "*__pycache__/" --exclude "*.pyc"
popd

popd

0 comments on commit d8910bb

Please sign in to comment.