tree-sitter-c-sharp icon indicating copy to clipboard operation
tree-sitter-c-sharp copied to clipboard

Add an action to publish the grammar automatically

Open Luni-4 opened this issue 3 years ago • 1 comments

This PR allows to publish automatically tree-sitter-c-sharp on crates.io when a new tag is set. To make it work, it is just necessary to define the CARGO_REGISTRY_TOKEN as secret.

It should be merged after #219 in my opinion

Thanks in advance for your review! :)

Luni-4 avatar Mar 21 '22 08:03 Luni-4

@dcreager I think you'd need to setup the secret - I don't have any access to the Rust/crates publishing only to the npm.

damieng avatar Mar 21 '22 10:03 damieng

Any chance you could pick this up @hendrikvanantwerpen ?

damieng avatar Sep 01 '22 16:09 damieng

I don't think I have Cargo access that allows me to do that. Perhaps @patrickt knows something about this as well.

hendrikvanantwerpen avatar Sep 01 '22 16:09 hendrikvanantwerpen

It should work now because of https://github.com/tree-sitter/tree-sitter-java/pull/98#issuecomment-1235934619. The token is public for the entire organization. Once merged, I guess you can publish through this action

Luni-4 avatar Sep 14 '22 07:09 Luni-4

Thank you @damieng for the merge and the new release! It works! :tada:

Luni-4 avatar Sep 16 '22 08:09 Luni-4

No, thank you for the script! Sorry things took a while to get in place.

damieng avatar Sep 16 '22 08:09 damieng