@@ -0,0 +1,13 @@
|
|||||||
|
import glob
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
def get_folder_name():
|
||||||
|
addon = glob.glob(os.getcwd() + "/*/__init__.py", recursive=True)
|
||||||
|
|
||||||
|
return os.path.basename(os.path.dirname(addon[0]))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
name = get_folder_name()
|
||||||
|
print(f'Show this value : {name}')
|
||||||
@@ -23,7 +23,6 @@ on:
|
|||||||
env:
|
env:
|
||||||
APP_NAME: 'moderlab_type'
|
APP_NAME: 'moderlab_type'
|
||||||
NAME_PACKAGE: 'moderlab_type.zip'
|
NAME_PACKAGE: 'moderlab_type.zip'
|
||||||
PATH_RELEASE: ${{ github.workspace }}\releases
|
|
||||||
|
|
||||||
|
|
||||||
# Execute this command
|
# Execute this command
|
||||||
@@ -38,6 +37,14 @@ jobs:
|
|||||||
- name: Change version number in the bl info addon data
|
- name: Change version number in the bl info addon data
|
||||||
run: python '.github/version.py' --tag=${{ inputs.num_version }} --name=${{ env.APP_NAME }}
|
run: python '.github/version.py' --tag=${{ inputs.num_version }} --name=${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
# Get the local folder name
|
||||||
|
- name: Setup package name
|
||||||
|
run: |
|
||||||
|
echo "With python, get a folder name"
|
||||||
|
python '.github/package.py'
|
||||||
|
echo "set with output value"
|
||||||
|
echo "::set-output name=type::$(python .github/package.py)"
|
||||||
|
|
||||||
- name: Commit the previous update
|
- name: Commit the previous update
|
||||||
uses: actions-js/push@v1.3
|
uses: actions-js/push@v1.3
|
||||||
if: ${{ inputs.draft_version == false }}
|
if: ${{ inputs.draft_version == false }}
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
import bpy
|
||||||
|
|
||||||
|
bl_info = {
|
||||||
|
'name': 'Addon Name',
|
||||||
|
'description': 'Add your description',
|
||||||
|
'author': 'Moderlab, Aurelien Vaillant, Nicolas Salles, Jeremy Duchesne',
|
||||||
|
'version': (0, 0, 0),
|
||||||
|
'blender': (3, 0, 0),
|
||||||
|
'doc_url': "",
|
||||||
|
'tracker_url': "",
|
||||||
|
'support': "COMMUNITY",
|
||||||
|
'category': 'Moderlab',
|
||||||
|
}
|
||||||
|
|
||||||
|
modules_class = [
|
||||||
|
# Main Property
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def register():
|
||||||
|
for cls in modules_class:
|
||||||
|
bpy.utils.register_class(cls)
|
||||||
|
|
||||||
|
|
||||||
|
def unregister():
|
||||||
|
for cls in reversed(modules_class):
|
||||||
|
bpy.utils.unregister_class(cls)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
register()
|
||||||
Reference in New Issue
Block a user