Update .gitea/workflows/demo.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s

This commit is contained in:
admin 2025-03-22 12:42:34 +08:00
parent 33517f29b0
commit b22e92c564

View File

@ -1,24 +1,13 @@
name: Java CI name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push] on: [push]
jobs: jobs:
build: Explore-Gitea-Actions:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
# 1. 检出代码 - name: Check out repository code
- name: Checkout code
uses: http://172.23.112.123:3000/actions/checkout@main uses: http://172.23.112.123:3000/actions/checkout@main
- name: List files in the repository
# # 2. 设置 OpenJDK 17 run: |
# - name: Set up JDK 17 ls ${{ gitea.workspace }}
# uses: http://172.23.112.123:3000/actions/setup-java@main
# with:
# distribution: 'temurin' # 使用 Eclipse TemurinOpenJDK 发行版)
# java-version: '17'
# # 3. 构建项目(假设使用 Maven
# - name: Build with Maven
# run: mvn -h