Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

knocte
Copy link
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.saobby.my.eu.orgmunity/t/if-not-startswith-mutually-exclusive-steps/141841/2
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
4 checks passed
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