In order to upload and publish it as a library, you should use CLI particle library create
to get the structure of a valid library. Then distribute the files as needed (sources in src
, examples in examples/<exampleName>
, adapt the respective entries in library.properties
(especially set the URL
and repository
fields to point to your GitHub repo) and then run particle library upload
to upload the library as private to test whether all examples can be used as expected and once the tests are successful run particle library publish
to make it public.