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