Marinara/.gitea/workflows/gradle-publish.yaml
Workflow config file is invalid. Please check your config file: yaml: line 20: mapping values are not allowed in this context
tueem b371ea8520
All checks were successful
github-mirror / push-github (push) Successful in 6s
Build / Gradle-Build (push) Successful in 2m2s
add setup gradle step
2024-11-14 12:45:43 +01:00

37 lines
887 B
YAML

name: Test
on:
push:
branches: [master]
jobs:
Gradle Test:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '23'
check-latest: true
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
add-job-summary: always
cache-cleanup: on-success
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Publish
env:
GITEA_TOKEN: {{ secrets.PUBLISH_PACKAGE_TOKEN }}
run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository