Skip to content

Commit

Permalink
Added an extra step to read the version of the addon from the TOML fi…
Browse files Browse the repository at this point in the history
…le and use it to determine the right name of the .zip file
  • Loading branch information
cmbasnett committed Jul 2, 2024
1 parent eb231fa commit 39abd0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
ADDON_NAME: io_scene_ase
steps:
- uses: actions/checkout@v3
- uses: SebRollen/[email protected]
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
Expand All @@ -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
Expand Down

0 comments on commit 39abd0e

Please sign in to comment.