mapbox / mapbox-sdk-cs

C# libraries for Mapbox API layer
https://mapbox.github.io/mapbox-sdk-cs/
Other
20 stars 11 forks source link

Versioning and publishing of 'nupkg' and docs #8

Closed wilhelmberg closed 7 years ago

wilhelmberg commented 7 years ago

This PR unlocks 2 things:

Versioning

versions.txt in the root of the repo contains two lines:

Publishing

nuget.org

Include [publish nuget] and AppVeyor pushes the nupkg with the version information found in versions.txt to nuget.org. Beware! nuget.org doesn't allow overwriting of existing versions! The nupkg version in versions.txt has to be higher than the latest here: https://www.nuget.org/packages/MapboxSDKforUnityCore/

docs

Include [publish docs] and AppVeyor pushes the docs to mapbox-sdk-unity/gh-pages (not sdk-core) available at https://mapbox.github.io/mapbox-sdk-unity/

wilhelmberg commented 7 years ago

YES!

@isiyu @david-rhodes please 👀 (build of this PR against master is failing on AppVeyor because appveyor.yml@master doesn't yet have env vars NUGET_API_KEY and GITHUB_TOKEN).

✅ versions are fetched from versions.txt and DLLs and nupkg are built/published with them ✅ [publish nuget]: https://ci.appveyor.com/project/Mapbox/mapbox-sdk-unity-core/build/1.0.40 ✅ [publish docs]: https://ci.appveyor.com/project/Mapbox/mapbox-sdk-unity-core/build/1.0.48


Currently docs get pushed to gh-pages of this repo https://mapbox.github.io/mapbox-sdk-unity-core/

We should make a final decision where they should live???


Next steps:

I think mainly #4 (publishing/installing nuget package questions):

wilhelmberg commented 7 years ago

@isiyu please 👀 I think we should get this merged ASAP in the light of improving our automated work flows.

I've updated the description of what it does above.