ci: 统一 workflow 写法,使其在 Gitea 与 GitHub 上通用

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
layue13andClaude Sonnet 5.5 committed 2026-10-14 06:59:51 +00:00
1 parent 67578c4c41
commit d9dfe49d21
1 file changed
+4 -10
@@ -23,31 +23,25 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 90
env:
GRADLE_USER_HOME: ${{ github.workspace }}/.gradle-ci
ARTIFACT_GROUP_ID: uk.potatolab
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
ORG_GRADLE_PROJECT_tdlmUsername: ${{ secrets.MAVEN_USER }}
ORG_GRADLE_PROJECT_tdlmPassword: ${{ secrets.MAVEN_PASSWORD }}
steps:
- uses: https://git.potatolab.uk/actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
with:
ref: ${{ inputs.module-ref || github.sha }}
fetch-depth: 0 # the package version is derived from git history
filter: blob:none
- uses: https://git.potatolab.uk/actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6
- uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6
with:
distribution: zulu
java-version: '25'
cache-jdk: true
- uses: https://git.potatolab.uk/actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: ~/.gradle/jdks
key: gradle-toolchains-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.gradle', '**/gradle.properties', '**/gradle-wrapper.properties') }}
restore-keys: gradle-toolchains-${{ runner.os }}-${{ runner.arch }}-
- uses: https://git.potatolab.uk/actions/gradle-actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb
with:
cache-provider: basic