vrchat-community / UdonSharp

A compiler for compiling C# to Udon assembly
https://udonsharp.docs.vrchat.com
MIT License
467 stars 50 forks source link

Add workflow to hide tests/samples #13

Closed bdunderscore closed 2 years ago

bdunderscore commented 2 years ago

This workflow will rename 'Tests' to 'Tests~', 'Samples' to 'Samples~', and remove the associated .meta files. It will then commit and force-push the result to a branch named the same as the original plus a -release prefix suffix.

This will allow Tests and Samples to remain available in a dev-oriented project, while having a branch excluding these which can be pulled into the package manager.

This workflow will apply to any branch which contains the workflow file.

Note that this PR does not actually move the directories in question back to their un-tilded names, and so the workflow will fail until this is done.

bdunderscore commented 2 years ago

This was tested on my fork: https://github.com/bdunderscore/UdonSharp/actions

bdunderscore commented 2 years ago

Note that it may be preferable to restrict this to certain branch names, to avoid feature branches triggering unwanted workflows. I'd be happy to add that filter if desired.

MerlinVR commented 2 years ago

We're going to be doing the same kind of process soon, though the implementation will be a little different so I'm going to close this PR.