From 10e7f017ee9ffa2bea753b457f6525e4f0136c0a Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sun, 27 Jul 2025 10:27:29 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发布生产+ --- .gitea/workflows/demo.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index f36895c..9710903 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -144,9 +144,10 @@ jobs: name: 检查 needs: [build, deploy] runs-on: ubuntu-latest - if: ${{ failure() }} + # if: ${{ success() }} 参考:https://docs.github.com/en/actions/reference/workflows-and-actions/expressions + if: ${{ success() }} steps: - - run: echo "Failed to build and deploy" + - run: echo "任务成功构建和部署完成" upload: name: 制品上传 @@ -168,7 +169,7 @@ jobs: path: my-binary retention-days: 90 # 保留期必须介于 1 到 90 天(含)之间。 if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` - compression-level: 9 # 6:默认压缩(与 GNU Gzip 相同) + compression-level: 9 # 6默认压缩(与 GNU Gzip 相同),如果设置成0不进行文件压缩 #path: | # path/output/bin/ # path/output/test-results