Skip to content

CI,build.fsx: publish prerelease nuget versions for every commit#629

Merged
knocte merged 4 commits into
fsprojects:masterfrom
knocte:nugetPreReleaseForEachCommitV3
Dec 14, 2023
Merged

CI,build.fsx: publish prerelease nuget versions for every commit#629
knocte merged 4 commits into
fsprojects:masterfrom
knocte:nugetPreReleaseForEachCommitV3

Conversation

@knocte
Copy link
Copy Markdown
Collaborator

@knocte knocte commented Dec 13, 2023

For this, the "alpha01" prerelease name is replaced by a dynamic one that contains the date and the git hash.

Supersedes #544

This way the 'publish' workflow is tested in every build, to make sure
it doesn't break (before this, we would only notice of any breakages
at the moment we create the tag). To prevent a release and a nuget
upload to happen at every commit, we just append an 'if' (see [1] for
the syntax) element to these steps.

[1] https://github.bokerqi.topmunity/t/if-not-startswith-mutually-exclusive-steps/141841/2
@knocte knocte force-pushed the nugetPreReleaseForEachCommitV3 branch 9 times, most recently from c46ea19 to c6c5393 Compare December 14, 2023 01:49
For this, the "alpha01" prerelease name is replaced by a dynamic one
that contains the date and the git hash.

We've had to move the Helpers before the Variables in order to use
them in this new part of the script.

As a side-node, these are nice FAKE docs about process handling here:
https://fake.build/reference/fake-core-process.html
Rather depend on new nuget package to get the prerelease version.
@knocte knocte force-pushed the nugetPreReleaseForEachCommitV3 branch from 016e8b8 to 752c1de Compare December 14, 2023 06:15
@knocte knocte changed the title CI: publish prerelease nuget versions for every commit CI,build.fsx: publish prerelease nuget versions for every commit Dec 14, 2023
@knocte knocte merged commit 9618a8a into fsprojects:master Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant