risk-of-thunder / R2API

A modding API for Risk of Rain 2
https://thunderstore.io/package/tristanmcpherson/R2API/
MIT License
135 stars 55 forks source link

Split-assemblies: Need to update CI #427

Closed xiaoxiao921 closed 1 year ago

xiaoxiao921 commented 1 year ago

Here is the CI I just cooked up as a draft

For each folder containing a csproj file:

    currentLastHash = git log -n 1 --format="%H" -- folderName
    if currentLastHash != lastPubliedHash:

        // This will probably be handled manually somehow
        // Not sure how to make this work with GitVersion
        GetSemVerFromGitLog(folderName)

        // Replace 0.0.1 by correct version on the bepinex attribute
        // Same for assembly dll attribute
        BuildNuPkgForCsProj(folderName)

        // Replace 0.0.1 by correct version on the thunderstore toml
        // Note: Need to make toml file for each csproj
        BuildTsReleaseForCsProj(folderName)

        // So that when the ci next time launch, we don't generate a release for nothing
        // Can and should be done through github cache action
        UpdateLastPubliedHash(folderName)

Not sure what was the plan for the r2api auto version gen but it'll most likely get removed entirely