name: Salon 生产发布准备 on: pull_request: types: - closed branches: - prod jobs: prepare: if: >- github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'prod' && github.event.pull_request.head.ref == 'sit' runs-on: jayucloud steps: - name: 检出合并提交 uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.merge_commit_sha }} fetch-depth: 0 - name: 准备 Java 17 uses: actions/setup-java@v4 with: distribution: temurin java-version: '17' cache: maven - name: 准备 Node.js 20 uses: actions/setup-node@v4 with: node-version: '20' cache: npm cache-dependency-path: JC-Salon-Frontend/package-lock.json - name: 构建 Salon 发布包 shell: pwsh run: >- ./docs/scripts/deploy-jayucloud-salon-production.ps1 -PackageOnly -SkipDatabaseInit - name: 上传发布包 uses: actions/upload-artifact@v4 with: name: salon-prod-${{ github.event.pull_request.merge_commit_sha }} path: artifacts/release/* if-no-files-found: error retention-days: 30