From d8910bb5b1704fe84ba847f3de445574c988b90d Mon Sep 17 00:00:00 2001 From: pedohorse <13556996+pedohorse@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:37:15 +0100 Subject: [PATCH] wip build tools --- .github/workflows/build-tools.yml | 38 +++++++++++++++++++++++++- dcc_plugins_workspace/build_blender.sh | 2 +- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-tools.yml b/.github/workflows/build-tools.yml index 0b47e53e..958a096b 100644 --- a/.github/workflows/build-tools.yml +++ b/.github/workflows/build-tools.yml @@ -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 @@ -41,4 +47,34 @@ jobs: with: name: blender path: - dcc_plugins/lifeblood_addon.zip \ No newline at end of file + 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/*/* diff --git a/dcc_plugins_workspace/build_blender.sh b/dcc_plugins_workspace/build_blender.sh index bbf0e4f3..94f520f7 100755 --- a/dcc_plugins_workspace/build_blender.sh +++ b/dcc_plugins_workspace/build_blender.sh @@ -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 \ No newline at end of file