From 5df84b510704c4ebadc49fdc9efc3f8f7432a217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Garc=C3=ADa-Dom=C3=ADnguez?= Date: Wed, 22 May 2024 22:58:51 +0100 Subject: [PATCH] Update release-native.yml: use Compress-Archive on Windows --- .github/workflows/release-native.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-native.yml b/.github/workflows/release-native.yml index 7033d8a..989d017 100644 --- a/.github/workflows/release-native.yml +++ b/.github/workflows/release-native.yml @@ -25,9 +25,17 @@ jobs: uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 - name: Build with Gradle Wrapper run: ./gradlew build nativeCompile nativeTest - - name: Upload release asset + - name: Upload release asset (Unix) + if: ${{ matrix.os != 'windows-latest' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | zip -j ${{ matrix.os }}-ecore2Emfatic.zip build/native/nativeCompile/ecore2Emfatic* gh release upload $GITHUB_REF_NAME ${{ matrix.os }}-ecore2Emfatic.zip + - name: Upload release asset (Windows) + if: ${{ matrix.os == 'windows-latest' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + Compress-Archive -Path build/native/nativeCompile/ecore2Emfatic* -Destination ${{ matrix.os }}-ecore2Emfatic.zip + gh release upload $GITHUB_REF_NAME ${{ matrix.os }}-ecore2Emfatic.zip