Skip to content

Commit

Permalink
sign aab for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed May 22, 2024
1 parent c5d9cc8 commit 23825b4
Showing 1 changed file with 18 additions and 28 deletions.
46 changes: 18 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,45 +156,38 @@ jobs:
run: |
npm run tauri android init
npm run tauri android build -- --aab
if [ -n "$AAB_SIGNING_KEYSTORE" ]; then
echo "$AAB_SIGNING_KEYSTORE" | base64 -d | apksigner sign --ks /dev/stdin \
--ks-pass env:AAB_SIGNING_PASSWORD \
--min-sdk-version 28 \
src-tauri/gen/android/app/build/outputs/bundle/universalRelease/*.aab
fi
env:
NDK_HOME: "${{ env.ANDROID_HOME }}/ndk/${{ env.ANDROID_NDK_VERSION }}"

- name: Upload Source Maps
run: npx --yes @sentry/cli sourcemaps upload -r ${{ needs.sentry-create-release.outputs.release }} dist

- name: Upload Artifact (Android)
uses: actions/upload-artifact@v4
if: startsWith(matrix.target, 'android')
- name: Glob Build Artifacts
uses: tj-actions/glob@v22
id: glob
with:
name: android-bundle
path: |
separator: '\n'
files:
src-tauri/gen/android/app/build/outputs/bundle/universalRelease/*.aab
- name: Upload Artifact (Linux)
uses: actions/upload-artifact@v4
if: ${{ startsWith(matrix.target, 'linux') && github.event_name != 'release' }}
with:
name: ${{ matrix.target }}-snapshot
path: |
target/**/bundle/deb/*.deb
target/**/bundle/rpm/*.rpm
target/**/bundle/appimage/*.AppImage
- name: Upload Artifact (Windows)
uses: actions/upload-artifact@v4
if: ${{ !startsWith(matrix.target, 'windows') && github.event_name != 'release' }}
with:
name: ${{ matrix.target }}-snapshot
path: |
target/**/bundle/msi/*.msi
target/**/bundle/dmg/*.dmg

- name: Upload Artifact (macOS)

- name: Upload Artifact
uses: actions/upload-artifact@v4
if: ${{ !startsWith(matrix.target, 'macos') && github.event_name != 'release' }}
if: ${{ startsWith(matrix.target, 'android') || github.event_name != 'release' }}
with:
name: ${{ matrix.target }}-snapshot
path: |
target/**/bundle/dmg/*.dmg
name: ${{ matrix.target }}-package
path: ${{ steps.glob.outputs.paths }}

- name: Create Release
uses: ncipollo/release-action@v1
Expand All @@ -206,10 +199,7 @@ jobs:
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
omitPrereleaseDuringUpdate: true
artifacts: "target/**/bundle/deb/*.deb,\
target/**/bundle/appimage/*.AppImage,\
target/**/bundle/msi/*.msi,\
target/**/bundle/dmg/*.dmg"
artifacts: ${{ steps.glob.outputs.paths }}

sentry-finalize-release:
name: Finalize Sentry Release
Expand Down

0 comments on commit 23825b4

Please sign in to comment.