Marinara/.gitea/workflows/gradle-publish.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 9: cannot unmarshal !!seq into model.Job
tueem de83137886
Some checks failed
github-mirror / push-github (push) Successful in 4s
Build / Gradle Build (push) Failing after 7m19s
add first version of CI with build, test and publish
2024-11-14 11:53:08 +01:00

31 lines
732 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: 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