useless build-step removed. #300
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: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**/README.md' | |
| - '**/.gitignore' | |
| - '.run/**' | |
| tags: | |
| - "[0-9]+.[0-9]+.[0-9]+" | |
| jobs: | |
| build: | |
| name: 🎉 Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Testing the plugin source requires checking out into `buildSrc`. | |
| - name: 🚚 Get latest code | |
| uses: actions/checkout@v4 | |
| - name: Cache Gradle dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.gradle/caches | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/build-gradle.kts') }} | |
| restore-keys: | | |
| gradle-${{ runner.os }}- | |
| # https://github.com/actions/setup-java | |
| - name: ☕ Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| architecture: x64 | |
| distribution: corretto | |
| java-version: '17' | |
| - name: Set up Gradle | |
| uses: actions/setup-gradle@v3 | |
| - name: Gradle Build | |
| run: | | |
| mkdir build | |
| chmod +x ./gradlew | |
| ./gradlew --no-daemon :build | |
| cd ./build/libs | |
| ls -la | grep jar | |
| - name: 📦 Retain Artifact (JAR) | |
| id: retain-plugin-jar | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: agconnect-publishing-gradle-plugin | |
| path: ./build/libs/*.jar | |
| retention-days: 14 |