diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8065f349..1a4abbe4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: CI +name: CI_new on: [push, pull_request] @@ -14,7 +14,7 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '8' + java-version: '17' - name: Lint and Unit tests run: ./gradlew check --stacktrace - name: Upload lint and test reports @@ -25,7 +25,6 @@ jobs: path: | ./core-android/build/reports ./rides-android/build/reports - test: runs-on: macOS-latest # enables hardware acceleration in the virtual machine, required for emulator testing strategy: @@ -40,7 +39,7 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '8' + java-version: '17' - name: Emulator tests uses: reactivecircus/android-emulator-runner@v2 with: @@ -57,7 +56,6 @@ jobs: path: | ./core-android/build/reports ./rides-android/build/reports - upload-snapshots: runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' @@ -73,9 +71,9 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '8' + java-version: '17' - name: Upload snapshots - run: ./gradlew uploadArchives --stacktrace + run: ./gradlew publish --stacktrace env: ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SonatypeUsername }} ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SonatypePassword }}