audeering / audbcards

Data cards for audio datasets
https://audeering.github.io/audbcards/
Other
0 stars 0 forks source link

CI: add publish Action for PyPI and Github pages #68

Closed hagenw closed 6 months ago

hagenw commented 7 months ago

Closes #54

This adds the publish.yml github Action, that will build and publish the Python package to PyPI for every tag, and also build the documentation and publish as Github pages.

This requires that the release environment in this repo exists (which I created), and that the project is registered with PyPI (which I also did).

hagenw commented 6 months ago

When pushing a tag only publish.yaml is activated, which means we need to build the documentation there as well. Of course, it might be possible to re-configure doc.yaml so it also runs when pushing a tag, but I also like to be able to use different code when building the docs for tests and when building the docs for publication.

And another reason is, we do it in all our other projects as well ;)

hagenw commented 6 months ago

I have tested the action locally using act.

act  -r  push  -j deploy

Cool, wasn't aware of act.