Skip to content

Improved push notifications & added updated back #56

Improved push notifications & added updated back

Improved push notifications & added updated back #56

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: tag-release
# This workflow can be used for pushing to the production server and will only be ran when code is pushed to the main branch
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
container: node:20
steps:
- uses: actions/checkout@v3
- name: Set up our JDK environment # setup JDK environment: mandatory as we need to build android project
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Get the version
id: get_version
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT
- name: Install Node.js dependencies
run: |
npm i
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_SERVER_URL: "https://nerimity.com"
envkey_DEV_MODE: "false"
envkey_APP_VERSION: ${{ steps.get_version.outputs.VERSION }}
envkey_TURNSTILE_SITEKEY: "0x4AAAAAAABO1ilip_YaVHJk"
envkey_EMOJI_URL: "https://nerimity.com/twemojis/"
envkey_NERIMITY_CDN: "https://cdn.nerimity.com/"
- name: Make Gradlew Executable
run: cd android && chmod +x ./gradlew
- name: Build Apk
run: |
cd android && ./gradlew assembleRelease --no-daemon
- name: Sign app APK
uses: r0adkll/sign-android-release@v1
# ID used to access action output
id: sign_app
with:
releaseDirectory: android/app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
- name: Rename and move apk
run: |
mv ${{steps.sign_app.outputs.signedReleaseFile}} $GITHUB_WORKSPACE/nerimity-${{ steps.get_version.outputs.VERSION }}.apk
- name: Publish Draft Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: false
files: |
nerimity-${{ steps.get_version.outputs.VERSION }}.apk