diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63f84661fa..cfcb2d91bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,9 @@ -name: compile +name: compile and publish client on: push: branches: - - main + - '*' paths-ignore: - 'README.md' - 'LICENSE' @@ -11,7 +11,7 @@ on: - '!.github/workflows/build.yml' pull_request: branches: - - main + - '*' jobs: build: @@ -19,7 +19,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + 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 @@ -50,5 +56,4 @@ jobs: export commit_author="${{ github.actor }}" export commit_sha="${{ github.sha }}" export run_num="${{ github.run_number }}" - bash build.sh - + bash build.sh \ No newline at end of file