Update gradle-publish.yml #15
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: Build TargetTracker | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Setup Gradle | |
| uses: gradle/gradle-build-action@v3 | |
| with: | |
| gradle-version: 8.12 | |
| - name: Execute Gradle build | |
| run: ./gradlew createJars | |
| - name: Prepare artifact | |
| run: mkdir TargetTracker && cp build/allJars/*.jar TargetTracker | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TargetTracker-Snapshot | |
| path: TargetTracker |