diff --git a/.github/workflows/build-tools.yml b/.github/workflows/build-tools.yml index 0b47e53e..12db99bf 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,38 @@ 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 + fetch-depth: 0 # to fetch all history, not just a single commit + - run: | + git config --global user.email "actions@github.com" + git config --global user.name "Tools auto tag" + git checkout ${{ github.sha }} + git tag + git branch --all + git log -n5 + echo "TAG=$(git describe)" >> $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