Skip to content

Update build.yaml

Update build.yaml #48

Workflow file for this run

name: build
on:
pull_request: {}
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
- run: ./gradlew build
- run: ./gradlew publish
if: ${{ github.ref == 'refs/heads/3.x' && github.repository == 'ReactiveX/RxAndroid' }}
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}