Skip to content

Monthly NuGet release previews #1380

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

Closed
wants to merge 1 commit into from

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Feb 11, 2021

What does this implement/fix? Explain your changes.

This generates monthly release previews on NuGet using GitHub actions

Does this close any currently open issues?

#1379

@filmor
Copy link
Member

filmor commented Feb 11, 2021

Does this really need to run tests? IMHO it's perfectly fine to keep this as simple as possible, i.e. to just run dotnet pack. I also wouldn't call it explicitly monthly, it might be useful to be able to trigger these manually. preview should do.

@lostmsu lostmsu force-pushed the PR/NuGetMonthly branch 2 times, most recently from a1232da to 7c205d6 Compare February 11, 2021 20:51
@lostmsu
Copy link
Member Author

lostmsu commented Feb 11, 2021

I think it is better to keep tests to avoid non-functional releases.

@@ -38,6 +38,9 @@ indent_style = tab
charset = utf-8
insert_final_newline = true

[Python.Runtime.csproj]
charset = latin1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an odd choice for XML, is this intentional?

Copy link
Member Author

@lostmsu lostmsu Feb 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this Visual Studio tends to add UTF-8 BOM header to solution, leading to PRs with the entire file replaced. It simply ignores utf-8 above.

- name: Publish NuGet
run: dotnet nuget push --api-key ${NUGET_KEY}
env:
NUGET_KEY: ${{ secrets.NUGET_MONTHLY }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this way you'll leak the key.

Copy link
Member Author

@lostmsu lostmsu Feb 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, but the reason I had to try to add this turned out to be bogus: it was not picked up, because PR was from my fork. I moved the PR branch into this repository instead, now it is getting picked up correctly. See #1381

So I reverted to using ${{ secrets.NUGET_MONTHLY }} directly

@lostmsu
Copy link
Member Author

lostmsu commented Feb 11, 2021

Superseded by #1381

@lostmsu lostmsu closed this Feb 11, 2021
@lostmsu lostmsu deleted the PR/NuGetMonthly branch February 12, 2021 00:18
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.

2 participants