Skip to content

Commit b3afb9f

Browse files
author
Josh
committed
CI should now be attaching apk and aab to release
1 parent eb6221c commit b3afb9f

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/development-release.yml

+16-8
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,6 @@ jobs:
4949
id: get_version_name
5050
run: chmod +x ./gradlew && echo "VERSION_NAME=$(./gradlew printVersionName -q)" >> $GITHUB_ENV
5151

52-
- name: Upload artifacts
53-
uses: actions/upload-artifact@v3
54-
with:
55-
name: Development-Release
56-
path: |
57-
app/build/outputs/apk/development/release/*.apk
58-
app/build/outputs/bundle/developmentRelease/*.aab
59-
6052
- name: Create GitHub Release
6153
uses: actions/create-release@v1
6254
with:
@@ -66,3 +58,19 @@ jobs:
6658
prerelease: true
6759
env:
6860
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
62+
- name: Upload APK to Release
63+
uses: actions/upload-release-asset@v1
64+
with:
65+
upload_url: ${{ steps.create_release.outputs.upload_url }}
66+
asset_path: app/development/development/release/*.apk
67+
asset_name: open-letters-${{ env.VERSION_NAME }}-${{ github.run_number }}-development.apk
68+
asset_content_type: application/vnd.android.package-archive
69+
70+
- name: Upload AAB to Release
71+
uses: actions/upload-release-asset@v1
72+
with:
73+
upload_url: ${{ steps.create_release.outputs.upload_url }}
74+
asset_path: app/development/development/release/*.aab
75+
asset_name: open-letters-${{ env.VERSION_NAME }}-${{ github.run_number }}-development.aab
76+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)