Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
octoshrimpy committed Nov 14, 2023
2 parents eff4fa3 + 693c86c commit 54b854c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
- name: Setup JDK
uses: actions/setup-java@v2.5.0
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: "11"
distribution: 'temurin'
java-version: '17'
- name: Set execution flag for gradlew
run: chmod +x gradlew
- name: Build APK
run: bash ./gradlew assembleDebug --stacktrace
run: ./gradlew assembleDebug --stacktrace
- name: Rename APK
run: mv presentation/build/outputs/apk/noAnalytics/debug/QKSMS-v*-noAnalytics-debug.apk presentation/build/outputs/apk/noAnalytics/debug/QKSMS-noAnalytics-debug.apk
- name: Upload APK
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: apk
path: app/build/outputs/apk/debug/app-debug.apk
path: presentation/build/outputs/apk/noAnalytics/debug/QKSMS-noAnalytics-debug.apk

release:
name: Release APK
needs: apk
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download APK from build
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: apk
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create and upload release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.run_number }}
release_name: ${{ github.event.repository.name }} v${{ github.run_number }}
- name: Upload Release APK
id: upload_release_asset
uses: actions/[email protected]
files: presentation/build/outputs/apk/noAnalytics/debug/QKSMS-noAnalytics-debug.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: apk/app-debug.apk
asset_name: ${{ github.event.repository.name }}.apk
asset_content_type: application/zip
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ QUIK is an open source replacement to the [stock messaging app](https://github.c

QUIK is not yet available to download, but will be available as an installable APK from the releases tab and F-Droid.

## Matrix Chat
You can meet with the community over at [#quik-sms:matrix.org](https://matrix.to/#/#quik-sms:matrix.org)

<!--
<a href="https://play.google.com/store/apps/details?id=dev.octoshrimpy.quik"><img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" alt="Download on Google Play" height="100"></a><a href="https://f-droid.org/repository/browse/?fdid=dev.octoshrimpy.quik"><img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="100"></a>
-->
Expand Down
1 change: 1 addition & 0 deletions app/build/outputs/apk/debug/app-debug.apk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.
1 change: 1 addition & 0 deletions releases/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.

0 comments on commit 54b854c

Please sign in to comment.