Skip to content

DRAFT: GitHubCI: publish prerelease nuget versions for every commit #544

Closed
knocte wants to merge 6 commits into
fsprojects:masterfrom
knocte:gitTagNugetLove
Closed

DRAFT: GitHubCI: publish prerelease nuget versions for every commit #544
knocte wants to merge 6 commits into
fsprojects:masterfrom
knocte:gitTagNugetLove

Conversation

@knocte
Copy link
Copy Markdown
Collaborator

@knocte knocte commented Apr 22, 2022

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

knocte added 6 commits April 22, 2022 16:55
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
So that they can be used with the code that sets up the latter.
Previous commit achieved creating a pre-release version for every commit,
but:
a) depending on an external repo that
b) depended on legacy .NET/Mono (so it needed installing Mono on Linux)

With this commit we bring that logic to our build step.
@knocte
Copy link
Copy Markdown
Collaborator Author

knocte commented Apr 22, 2022

(Only reason the CI fails for this PR is because I don't have any nuget API key configured in my fork, but this should work when merging, as I didn't modify the upload step.)

@knocte knocte changed the title GitHubCI: publish prerelease nuget versions for every commit DRAFT: GitHubCI: publish prerelease nuget versions for every commit Nov 23, 2022
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
knocte added a commit to tarsgate/fsx that referenced this pull request Dec 13, 2023
@knocte
Copy link
Copy Markdown
Collaborator Author

knocte commented Dec 13, 2023

Superseded by #629

@knocte knocte closed this Dec 13, 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