diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index ee9850e..ec080a1 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -34,7 +34,7 @@ jobs: - name: Build with Maven working-directory: ./ - run: mvn -B package --file pom.xml + run: mvn -B package -P prod --file pom.xml - name: Login to GHCR if: github.event_name != 'pull_request' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 442dc6f..752eaf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: - name: Build with Maven working-directory: ./ - run: mvn -B package --file pom.xml + run: mvn -B package -P prod --file pom.xml # 设置 Maven pom 版本环境变量 - name: Set Release version env variable