https://github.com/OpenAstronomy/github-actions-workflows/blob/main/.github/workflows/publish.yml uses both shell: sh and shell: bash which is really confusing. I find that conditional does not work at #149 (comment) and I am not sure how to fix it here.
Also see liberfa/pyerfa#111