Skip to content

Commit 22fcd7a

Browse files
committed
Automating attaching of zip file
1 parent 36ab036 commit 22fcd7a

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/release_build.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Build the blender plugin and attach to a release
22

33
on:
4-
workflow_dispatch: # Enables manual triggering
5-
# release:
6-
# types: [published]
4+
# workflow_dispatch: # Enables manual triggering
5+
release:
6+
types: [published]
77

88
jobs:
99
build-and-upload:
@@ -13,8 +13,8 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
- 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
1818

1919
- name: Set up Python
2020
uses: actions/setup-python@v4
@@ -83,8 +83,16 @@ jobs:
8383
mkdir dist ;
8484
unzip /tmp/*.zip -d dist
8585
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
8894
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+

0 commit comments

Comments
 (0)