File tree Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Expand file tree Collapse file tree 2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -174,3 +174,44 @@ jobs:
174174 with :
175175 name : ${{ matrix.qt_arch }}-qt-${{ matrix.qt_version }}
176176 path : ${{ matrix.artifact_path }}
177+
178+ create_release :
179+ name : Create Release
180+ runs-on : ubuntu-latest
181+ needs : [ubuntu, macos, windows]
182+ if : startsWith(github.ref, 'refs/tags/')
183+
184+ steps :
185+ - name : Checkout repository
186+ uses : actions/checkout@v4
187+
188+ - name : Create source archive
189+ run : |
190+ ./update-submodules.sh
191+ pushd aseprite/laf
192+ patch -p1 < ../../laf-msvc-dynamic-runtime.patch
193+ popd
194+ ./create-source-archive.sh ${{ github.ref_name }}
195+
196+ - name : Download all artifacts
197+ uses : actions/download-artifact@v4
198+ with :
199+ path : artifacts
200+
201+ - name : Compress each artifact
202+ run : |
203+ for file in ./artifacts/*; do
204+ pushd "${file}"
205+ zip -r "../qaseprite-${{ github.ref_name }}-$(basename "$file").zip" "."
206+ popd
207+ done
208+
209+ - name : Create GitHub Release
210+ uses : softprops/action-gh-release@v2
211+ with :
212+ name : qaseprite ${{ github.ref_name }}
213+ files : |
214+ qaseprite-${{ github.ref_name }}-source.tar.gz
215+ artifacts/*.zip
216+ env :
217+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 77 exit 1
88fi
99
10- # Make sure the submodules are up-to-date
11- ./update-submodules.sh
12-
1310# Create the source archive
1411git ls-files --recurse-submodules -z \
1512 | grep -z \
@@ -34,4 +31,4 @@ git ls-files --recurse-submodules -z \
3431 -e ' ^aseprite/laf/third_party/googletest/' \
3532 -e ' ^aseprite/third_party/harfbuzz/test/' \
3633 -e ' ^aseprite/third_party/libpng/contrib/' \
37- | tar caf qaseprite-${VERSION} .tar.gz --xform s:^:qaseprite-${VERSION} /: --null -T-
34+ | tar caf qaseprite-${VERSION} -source .tar.gz --xform s:^:qaseprite-${VERSION} /: --null -T-
You can’t perform that action at this time.
0 commit comments