WIP: Move release tasks to separate scripts for better reusability #157
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Gradle Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| java: [17, 21] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: temurin | |
| java-version: ${{ matrix.java }} | |
| - uses: gradle/gradle-build-action@v2 | |
| - run: ./gradlew clean build | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - run: | | |
| ./gradlew utils:releaseClean | |
| ./gradlew utils:releasePrepare -PbumpType=patch | |
| ./gradlew utils:releasePerform | |
| echo "Release utils done!" | |
| echo "Printing out the release output!" | |
| ls -lah ~/.m2/repository/ai/elimu/content_provider/utils/1.2.29 | |