Skip to content

Commit

Permalink
Release script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneeVandervelde committed Feb 11, 2024
1 parent f0b453c commit 7f712f2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,25 @@ jobs:
ORG_GRADLE_PROJECT_signingAlias: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
name: Build Android App
run: ./gradlew --no-daemon assembleRelease bundleRelease -Pcommit=${{ github.sha }} -PversionName=${{ github.ref_name }} -PversionCode=$((($GITHUB_RUN_NUMBER * 10) + $GITHUB_RUN_ATTEMPT))
-
name: Prepare Uploads
run: |
mkdir -p build
mkdir -p build/output
cp android/build/outputs/apk/release/android-release.apk build/output/Sleeps-${{ github.ref_name }}.apk
cp android/build/outputs/bundle/release/android-release.aab build/output/Sleeps-${{ github.ref_name }}.aab
-
name: Archive APK
uses: actions/upload-artifact@v2.3.1
with:
name: Android APK
path: build/output/android-${{ github.ref_name }}.apk
path: build/output/Sleeps-${{ github.ref_name }}.apk
-
name: Archive Bundle
uses: actions/upload-artifact@v2.3.1
with:
name: Android AAB
path: build/output/android-${{ github.ref_name }}.aab
path: build/output/Sleeps-${{ github.ref_name }}.aab
-
name: Create Release
id: create_release
Expand All @@ -50,8 +57,8 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref_name }}
draft: true
prerelease: false
draft: false
prerelease: true
-
name: Upload AAB Release Asset
uses: actions/upload-release-asset@v1.0.2
Expand Down

0 comments on commit 7f712f2

Please sign in to comment.