Update .gitea/workflows/demo.yaml

This commit is contained in:
admin 2025-03-22 14:33:41 +08:00
parent 3f27f97052
commit d26d455979

View File

@ -1,5 +1,5 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
name: Gitea Actions
run-name: ${{ gitea.actor }}
on:
workflow_dispatch:
@ -12,12 +12,11 @@ jobs:
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Set up Java version
uses: http://172.23.112.123:3000/actions/setup-java@main
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: mvn clean install
- name: Build with Maven using Docker
run: |
docker run --rm \
-v "$(pwd)":/usr/src/app \
-v /data/app/maven-repo:/root/.m2/repository
-w /usr/src/app \
maven:3.9.9-eclipse-temurin-17 \
mvn clean install -Dmaven.test.skip=true