39 lines
925 B
YAML
39 lines
925 B
YAML
name: Java CI with Gradle
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
with:
|
|
min-wrapper-count: 1
|
|
allow-snapshots: false
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
server-id: github
|
|
server-username: GITHUB_ACTOR
|
|
server-password: GITHUB_TOKEN
|
|
overwrite-settings: true
|
|
|
|
- name: Grant execute permission for gradlew.
|
|
run: chmod +x gradlew
|
|
|
|
- uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: build --no-daemon
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: oyvey
|
|
path: build/libs/
|
|
if-no-files-found: error
|
|
retention-days: 30
|