Closed wilhelmberg closed 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):
nuspec
to get the nupkg
into the final sdk
easiersdk
to S3@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.
This PR unlocks 2 things:
Versioning
versions.txt
in the root of the repo contains two lines:dlls
: AppVeyor patches the version information of the DLLs to that version. It's good practice to keep DLL versions andnupkg
versions in synch.nupkg
: version of the nuget package. More flexible than thedlls
version as this can contain additional characters/numbers after the initial version (eg-alpha02
)->
this defines a pre-release version on nuget.org.Publishing
nuget.org
Include
[publish nuget]
and AppVeyor pushes thenupkg
with the version information found inversions.txt
to nuget.org. Beware! nuget.org doesn't allow overwriting of existing versions! Thenupkg
version inversions.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 (notsdk-core
) available at https://mapbox.github.io/mapbox-sdk-unity/