chore(chat): remove deprecated hype chat feature (#457) #563
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release new version | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: release | |
concurrency: | |
group: deploy-to-store | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Validate Gradle wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y.%m')" | |
- name: Compute unique version code | |
id: version | |
run: echo "::set-output name=version::$(git rev-list HEAD --count)" | |
- name: Build app bundle | |
run: | | |
./gradlew bundleRelease \ | |
"-PreleaseKeystorePassword=${{ secrets.RELEASE_KEYSTORE_PASSWORD }}" \ | |
"-PexternalVersionName=${{ steps.date.outputs.date }}.${{ steps.version.outputs.version }}" \ | |
"-PexternalVersionCode=${{ steps.version.outputs.version }}" \ | |
"-PenableLogging=false" | |
- name: Upload app bundle to GitHub | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: apk | |
path: app-android/build/outputs/bundle/release/app-android-release.aab | |
- name: Publish nightly build to internal track | |
uses: r0adkll/upload-google-play@v1 | |
with: | |
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_INTERNAL_APP_SHARING }} | |
packageName: fr.outadoc.justchatting | |
releaseFiles: app-android/build/outputs/bundle/release/app-android-release.aab | |
track: internal | |
mappingFile: app-android/build/outputs/mapping/release/mapping.txt | |
status: completed | |
- name: Create GitHub release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
tag: "v${{ steps.date.outputs.date }}.${{ steps.version.outputs.version }}" | |
commit: main | |
makeLatest: true | |
generateReleaseNotes: true | |
artifacts: app-android/build/outputs/bundle/release/app-android-release.aab |