diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75f31b5..ad21def 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,8 +89,17 @@ jobs: --branch \ --html \ --output-dir target/coverage-report - - name: Upload HTML coverage report + - name: Upload HTML coverage report on GitHub + if: github.server_url == 'https://github.com' + uses: actions/upload-artifact@v7 + with: + name: coverage-report + path: target/coverage-report + if-no-files-found: error + retention-days: 14 + - name: Upload HTML coverage report on Gitea # Gitea does not support the artifact service used by v4 and later. + if: github.server_url != 'https://github.com' uses: actions/upload-artifact@v3 with: name: coverage-report