mantidproject / mantidimaging

Graphical toolkit for neutron imaging.
https://mantidproject.github.io/mantidimaging
GNU General Public License v3.0
13 stars 6 forks source link

When building release docs, don't fail if nothing to clean #2258

Closed samtygier-stfc closed 2 months ago

samtygier-stfc commented 2 months ago

Issue

When building docs on a new release branch for the first time, the step to clean the existing contents fails, because there is none.

Description

Add an || true, so that it does not matter if the git rm command finds nothing to remove

Also add github.event_name == 'push' to publish doc rules, so they don't trigger based on the branch name of a PR

Testing

After merging, the docs should build and publish

coveralls commented 2 months ago

Coverage Status

coverage: 73.144%. remained the same when pulling 80862c08382b1ae5cf9e85e30feefb99a7ed7ecb on 2249-release-doc-action-fix into aa92a4dc5a8a63ff448e94d94a424fba3057f8a4 on release-2.8.0.