This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user