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

Build nuget packages in CI and push to nuget.org #34

Merged
merged 6 commits into from
Nov 27, 2024

Conversation

webwarrior-ws
Copy link
Collaborator

Description of Change

Build nuget packages for commits in "main" branch or tags
and upload to nuget.org.

For main branch, create pre-relaese packages, and for tags
create stable release packages.

Issues Fixed

Fixes #94

Supersedes #31

Update versions of packages that have vulnerability and block
the build.
@knocte
Copy link
Member

knocte commented Nov 26, 2024

Not ready yet because if I merge it, it will still not push tags to nuget.org. Please reopen when this has been fixed.

@knocte knocte closed this Nov 26, 2024
@webwarrior-ws
Copy link
Collaborator Author

Tag will now push stable release. However when commit is pushed to main with a tag, 2 actions will run, one for commit and one for tag, which will result in both release and pre-release packages pushed to nuget.org.

@webwarrior-ws webwarrior-ws reopened this Nov 27, 2024
@webwarrior-ws webwarrior-ws force-pushed the fix-linux-maui-94-mali-rebase8 branch 2 times, most recently from 1b0a953 to 6fd8c30 Compare November 27, 2024 12:44
Rename Microsoft.Maui.* packages to Mali.* so they can be
published on nuget.org.
Upload pre-release package on `main` branch using
nugetPreRelease.fsx to get a version number that
includes the date and commit hash inside it.
Use GITHUB_REF_NAME env. var to extract Git tag. If tag is not
the same as version extracted from GitInfo.txt, abort build
and show error.
@webwarrior-ws webwarrior-ws force-pushed the fix-linux-maui-94-mali-rebase8 branch from 6fd8c30 to 797d2af Compare November 27, 2024 13:01
@knocte knocte merged commit 8d9c624 into nblockchain:main Nov 27, 2024
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.

Nuget packages: prerelease for each commit and non-prerelease for each git tag? via GitHub Actions
2 participants