Hi friends.
I am developing various libraries for PIO platform. I want to write a GitHub CI YAML for my library. I want to push library to GitHub then after all controls made with GitHub, I want to publish my library to registry with actions. can anyone do this before ?
Thanks.
CI checking on a library is possible with pio ci
and you can also publish to the PIO registry if you login, generate a token and set that as a Github secret – but I would not do this on every commit, only major releases. If users want the latest commit, they can do lib_deps
with the Git link directly. Submissions are reviewed manually after all.
Refer to the documentation
https://docs.platformio.org/en/latest/integration/ci/github-actions.html#using-cmd-ci-command
https://docs.platformio.org/en/latest/core/userguide/account/cmd_login.html
https://docs.platformio.org/en/latest/core/userguide/account/cmd_token.html
https://docs.platformio.org/en/latest/core/userguide/pkg/cmd_publish.html
And example