File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 14
14
15
15
- name : Set version from release
16
16
# 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
18
21
19
22
- name : Set up Python
20
23
uses : actions/setup-python@v4
76
79
run : |
77
80
# Update the version in blender_manifest.toml
78
81
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 .;
91
83
92
84
- name : Upload to release
93
85
uses : softprops/action-gh-release@v1
You can’t perform that action at this time.
0 commit comments