From 39abd0edfefe3e4d39a5bbb55aadb00081eef279 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Mon, 1 Jul 2024 18:36:02 -0700 Subject: [PATCH] Added an extra step to read the version of the addon from the TOML file and use it to determine the right name of the .zip file --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 28e7aab..82ec4ea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,11 @@ jobs: ADDON_NAME: io_scene_ase steps: - uses: actions/checkout@v3 + - uses: SebRollen/toml-action@v1.2.0 + id: read_manifest + with: + file: 'io_scene_ase/blender_manifest.toml' + field: 'version' - name: Set derived environment variables run: | echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV @@ -39,7 +44,7 @@ jobs: pushd ./${{ env.ADDON_NAME }} blender --command extension build mkdir artifact - unzip -q ${{ env.ADDON_NAME }}.zip -d ./artifact + unzip -q ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}.zip -d ./artifact popd - name: Archive addon uses: actions/upload-artifact@v4