From 16af6bfbfa5e8d6aebf948297d8276106334789b Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 9 Nov 2023 14:05:21 +0800 Subject: [PATCH] ci: add `if-no-files-found: error` --- .github/workflows/build.yml | 3 +++ .github/workflows/typedoc.yml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e05c901c..b80b34d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,6 +78,7 @@ jobs: name: AgoraRtcNgExample path: | example/android/app/build/outputs/apk/release/*.apk + if-no-files-found: error build-ios: if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:dep-update') }} @@ -174,6 +175,7 @@ jobs: name: AgoraRtcNgExample path: | example/ios/*.ipa + if-no-files-found: error - name: Upload dSYM uses: actions/upload-artifact@v3 @@ -181,6 +183,7 @@ jobs: name: AgoraRtcNgExampleSymbol path: | example/ios/*.dSYM.zip + if-no-files-found: error notification: runs-on: ubuntu-latest diff --git a/.github/workflows/typedoc.yml b/.github/workflows/typedoc.yml index 78f7fc19..e98f57b5 100644 --- a/.github/workflows/typedoc.yml +++ b/.github/workflows/typedoc.yml @@ -29,18 +29,24 @@ jobs: steps: - name: Checkout 🛎️ uses: actions/checkout@v4 + - name: Setup uses: ./.github/actions/setup + - name: Build TypeDoc run: yarn doc + - name: Zip It Up 🤐 run: | zip -r react-native-agora-docs.zip docs + - name: Upload Artifact ⬆️ uses: actions/upload-artifact@v3 with: name: react-native-agora-docs.zip path: react-native-agora-docs.zip + if-no-files-found: error + - name: Upload Doc Archive to GitHub release ⬆️ if: github.event.release uses: svenstaro/upload-release-action@2.6.0 @@ -48,11 +54,13 @@ jobs: file: react-native-agora-docs.zip asset_name: react-native-agora-docs.zip tag: ${{ github.ref_name }} + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: # Upload docs directory path: 'docs' + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2