diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index c781be80..60032db2 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -30,8 +30,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token run: DISPLAY=:1 xvfb-run -s '-screen 1 1024x768x24' julia --project=docs/ --code-coverage=user docs/make.jl - - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v4 + - name: Process coverage + if: github.ref == 'refs/heads/main' + uses: julia-actions/julia-processcoverage@v1 + - name: Upload coverage to Codecov + if: github.ref == 'refs/heads/main' + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: lcov.info