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
This commit is contained in:
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@@ -15,6 +15,11 @@ jobs:
|
|||||||
ADDON_NAME: io_scene_ase
|
ADDON_NAME: io_scene_ase
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Set derived environment variables
|
||||||
run: |
|
run: |
|
||||||
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
|
||||||
@@ -39,7 +44,7 @@ jobs:
|
|||||||
pushd ./${{ env.ADDON_NAME }}
|
pushd ./${{ env.ADDON_NAME }}
|
||||||
blender --command extension build
|
blender --command extension build
|
||||||
mkdir artifact
|
mkdir artifact
|
||||||
unzip -q ${{ env.ADDON_NAME }}.zip -d ./artifact
|
unzip -q ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}.zip -d ./artifact
|
||||||
popd
|
popd
|
||||||
- name: Archive addon
|
- name: Archive addon
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user