Skip to content

feat: Update to 1669 #149

feat: Update to 1669

feat: Update to 1669 #149

Workflow file for this run

name: compile and publish client
on:
push:
branches:
- '*'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.github/**'
- '!.github/workflows/build.yml'
pull_request:
branches:
- '*'
jobs:
build:
name: Gradle Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Setup Android SDK Tools
uses: android-actions/setup-android@v2
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Chmod Gradle
run: chmod +x gradlew
- name: Importing secrets
run: |
echo "${{ secrets.prop }}" | base64 -d > local.properties
echo "${{ secrets.keystore }}" | base64 -d > keystore.properties
- name: Fix SDK 31.0.0
run: |
[ ! -f $ANDROID_HOME/build-tools/31.0.0/dx ] && cp $ANDROID_HOME/build-tools/30.0.3/dx $ANDROID_HOME/build-tools/31.0.0/dx
[ ! -f $ANDROID_HOME/build-tools/31.0.0/lib/dx.jar ] && cp $ANDROID_HOME/build-tools/30.0.3/lib/dx.jar $ANDROID_HOME/build-tools/31.0.0/lib/dx.jar
- name: Setup
run: |
export TERM=linux
git submodule init && git submodule update --init --recursive --depth=1
scripts/./setup.sh
- name: Build
run: |
export token=$(echo "${{ secrets.token }}" | base64 -d)
export chatid=$(echo "${{ secrets.chatid }}" | base64 -d)
export chatid_chlog=$(echo "${{ secrets.chatid_chlog }}" | base64 -d)
export isstable=$(echo "${{ secrets.isstable }}" | base64 -d)
export chatid_release=$(echo "${{ secrets.chatid_release }}" | base64 -d)
export commit="${{ github.event.head_commit.message }}"
export commit_author="${{ github.actor }}"
export commit_sha="${{ github.sha }}"
export run_num="${{ github.run_number }}"
bash build.sh