Skip to content

Commit

Permalink
Update release-native.yml: use Compress-Archive on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom authored May 22, 2024
1 parent 5b22b8a commit 5df84b5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5df84b5

Please sign in to comment.