切换到离线Actions模式
Some checks failed
构建并部署 Spring Boot 应用 / build-and-deploy (push) Failing after 0s

This commit is contained in:
2025-09-26 02:29:51 +08:00
parent dfb61d6775
commit a91b922852

View File

@@ -5,27 +5,27 @@ jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
steps: steps:
# 使用本地离线 Action - setup-node # 使用本地离线 Action - setup-node (使用 file:// 协议)
- name: 为 Gitea Actions 设置 Node.js 环境 (离线版) - name: 为 Gitea Actions 设置 Node.js 环境 (离线版)
uses: /opt/gitea-actions/setup-node/v4.0.2/ uses: file:///opt/gitea-actions/setup-node/v4.0.2/
with: with:
node-version: '20' node-version: '20'
cache: 'none' cache: 'none'
# 使用本地离线 Action - checkout # 使用本地离线 Action - checkout (使用 file:// 协议)
- name: 检出代码 (离线版) - name: 检出代码 (离线版)
uses: /opt/gitea-actions/checkout/v4.1.1/ uses: file:///opt/gitea-actions/checkout/v4.1.1/
with: with:
fetch-depth: 1 fetch-depth: 1
# 使用本地离线 Action - setup-java # 使用本地离线 Action - setup-java (使用 file:// 协议)
- name: 设置 JDK 17 (离线版) - name: 设置 JDK 17 (离线版)
uses: /opt/gitea-actions/setup-java/v4.2.1/ uses: file:///opt/gitea-actions/setup-java/v4.2.1/
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
# 后续步骤保持不变... # 后续步骤保持不变
- name: 使用 Maven 打包 - name: 使用 Maven 打包
run: mvn clean package -DskipTests run: mvn clean package -DskipTests