Skip to content

Commit 357c909

Browse files
committed
Fixing zip build
1 parent 22fcd7a commit 357c909

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/release_build.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ jobs:
1414

1515
- name: Set version from release
1616
# run: echo "VERSION=0.2.11" >> $GITHUB_ENV
17-
run: echo "VERSION=${{ github.event.release.tag_name && github.event.release.tag_name.startsWith('v') && github.event.release.tag_name != 'v' && github.event.release.tag_name[1:] || github.event.release.tag_name }}" >> $GITHUB_ENV
17+
run: |
18+
TAG="${{ github.event.release.tag_name }}"
19+
VERSION="${TAG#v}" # strip leading v if present
20+
echo "VERSION=$VERSION" >> $GITHUB_ENV
1821
1922
- name: Set up Python
2023
uses: actions/setup-python@v4
@@ -76,18 +79,7 @@ jobs:
7679
run: |
7780
# Update the version in blender_manifest.toml
7881
sed -i "s/^version[ ]*=.*$/version = \"$VERSION\"/g" blender_manifest.toml
79-
blender --command extension build --output-dir /tmp;
80-
# Because the upload artifact zips the directory
81-
# we need to unzip the contents to allow the artifact
82-
# process to re-zip
83-
mkdir dist ;
84-
unzip /tmp/*.zip -d dist
85-
86-
# - name: Archive production artifacts
87-
# uses: actions/upload-artifact@v4
88-
# with:
89-
# name: blender_iiif_3d_plugin-${{ env.VERSION }}
90-
# path: dist
82+
blender --command extension build --output-dir .;
9183
9284
- name: Upload to release
9385
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)