Browse Source

CI - ignore upload/publish step error unless when tagging.

Yao Wei Tjong 姚伟忠 5 years ago
parent
commit
07231f0cc1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/main.yml

+ 3 - 1
.github/workflows/main.yml

@@ -141,7 +141,8 @@ jobs:
             android/urho3d-lib/build/distributions/*.zip
             android/urho3d-lib/build/libs/*.jar
             build/*.out
-        if: github.event_name == 'push'
+        if: github.event_name == 'push' || (failed() && (matrix.platform == 'linux-clang-tidy' || matrix.platform == 'linux-clang-format'))
+        continue-on-error: ${{ !startsWith(github.ref, 'refs/tags/') }}
       - name: Publish
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -155,6 +156,7 @@ jobs:
           github.event_name == 'push' &&
           (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) &&
           (matrix.platform == 'android' || (matrix.platform == 'web' && matrix.build-type == 'rel'))
+        continue-on-error: ${{ !startsWith(github.ref, 'refs/tags/') }}
   macOS:
     name: 🍏
     runs-on: macos-latest