useless build-step removed. #297
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 | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**/README.md' | |
| - '**/.gitignore' | |
| - '.run/**' | |
| pull_request: | |
| branches: [ master ] | |
| paths-ignore: | |
| - '**/README.md' | |
| - '**/.gitignore' | |
| - '.run/**' | |
| 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 | |
| # https://github.com/actions/setup-java | |
| - name: ☕ Set up AWS Corretto JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: corretto | |
| architecture: x64 | |
| java-version: '17' | |
| - name: Build with Gradle | |
| run: | | |
| mkdir build | |
| chmod +x ./gradlew | |
| ./gradlew :build | |
| cd ./build/libs | |
| ls -la | grep jar | |
| - name: 📦 Retain Artifact (JAR) | |
| id: retain-plugin-jar | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: buildSrc | |
| path: ./build/libs/*.jar | |
| retention-days: 14 |