useless build-step removed. #321
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 Gradle Plugin | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| # Testing the plugin source requires checking out into `buildSrc`. | |
| - name: 🚚 Get latest code | |
| uses: actions/checkout@v4 | |
| # https://github.com/actions/setup-java | |
| - name: ☕ Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| architecture: x64 | |
| distribution: corretto | |
| java-version: '17' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: '9.0.0' | |
| build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" | |
| build-scan-terms-of-use-agree: "yes" | |
| build-scan-publish: false | |
| - name: Gradle Build | |
| run: | | |
| mkdir build | |
| gradle --no-daemon :build :publishGitHubPublicationToGitHubPackagesRepository | |
| 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 |