From 40a86973970b7e7a345df4cc37cbde48414080a8 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Tue, 15 Oct 2024 10:41:07 -0300 Subject: [PATCH] ci: release debug symbols --- .github/workflows/npm_release.yml | 15 ++++++++++++++- .github/workflows/pull_request.yml | 5 +++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm_release.yml b/.github/workflows/npm_release.yml index 1de240168..148a7f1b0 100644 --- a/.github/workflows/npm_release.yml +++ b/.github/workflows/npm_release.yml @@ -77,6 +77,12 @@ jobs: with: name: npm-package path: dist/nativescript-android-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz + - name: Upload debug symbols + uses: actions/upload-artifact@v3 + with: + name: debug-symbols + path: test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/* + test: name: Test runs-on: macos-13 @@ -174,10 +180,17 @@ jobs: with: name: npm-package path: dist + - uses: actions/download-artifact@v3 + with: + name: debug-symbols + path: dist/debug-symbols + - name: Zip debug symbols + working-directory: dist/debug-symbols + run: zip -r debug-symbols.zip . - name: Partial Changelog run: npx conventional-changelog -p angular -r2 > body.md - uses: ncipollo/release-action@v1 with: - artifacts: "dist/nativescript-android-*.tgz" + artifacts: "dist/nativescript-android-*.tgz,dist/debug-symbols/debug-symbols.zip" bodyFile: "body.md" prerelease: ${{needs.build.outputs.npm_tag != 'latest'}} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d406bc1f4..5bdfbb64f 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -74,6 +74,11 @@ jobs: with: name: npm-package path: dist/nativescript-android-${{steps.npm_version_output.outputs.NPM_VERSION}}.tgz + - name: Upload debug symbols + uses: actions/upload-artifact@v3 + with: + name: debug-symbols + path: test-app/runtime/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/* test: name: Test runs-on: macos-13