File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Build the blender plugin and attach to a release
2
2
3
3
on :
4
- workflow_dispatch : # Enables manual triggering
5
- # release:
6
- # types: [published]
4
+ # workflow_dispatch: # Enables manual triggering
5
+ release :
6
+ types : [published]
7
7
8
8
jobs :
9
9
build-and-upload :
13
13
- uses : actions/checkout@v4
14
14
15
15
- name : Set version from release
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
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
18
18
19
19
- name : Set up Python
20
20
uses : actions/setup-python@v4
83
83
mkdir dist ;
84
84
unzip /tmp/*.zip -d dist
85
85
86
- - name : Archive production artifacts
87
- uses : actions/upload-artifact@v4
86
+ # - name: Archive production artifacts
87
+ # uses: actions/upload-artifact@v4
88
+ # with:
89
+ # name: blender_iiif_3d_plugin-${{ env.VERSION }}
90
+ # path: dist
91
+
92
+ - name : Upload to release
93
+ uses : softprops/action-gh-release@v1
88
94
with :
89
- name : blender_iiif_3d_plugin-${{ env.VERSION }}
90
- path : dist
95
+ files : blender_iiif_3d_plugin-${{ env.VERSION }}.zip
96
+ env :
97
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98
+
You can’t perform that action at this time.
0 commit comments