-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Deploying new releases using octokit #905 #933
Conversation
Deploying octokit using octokit octokit#905
Conflicts: deploy.cmd deploy.fsx
IMO we should move the Thoughts? |
Sounds good to me. |
The default target in Here is the argument list deploy.cmd
I wasn't able to deploy to nuget because I don't have private nuget key to deploy octokit. I was able to ReleaseToGithub. Here is the run from the ReleaseToGithub
|
Part of deploying release's involves manually creating ReleaseNotes based on PR's merged from the previous git tag to now. Why not automate this? https://gist.github.com/naveensrinivasan/d267667cf7b7dd017b90 This is what I was able to produce this using octokit from
Would this be useful @haacked / @shiftkey ? If so then I could make it as part of this PR. |
I'd like to do this separately for a couple of reasons:
There's a related project GitReleaseNotes which is also in this vein which I think can help here, or something similar to your script, but for now can we punt on addressing that here? |
Sounds good. 👍 |
cls | ||
|
||
SET TARGET="CreatePackages" | ||
SET GITOWNER="octokit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be named GITHUBOWNER
to indicate this is specific to the GitHub API (rather than the Git repository)?
And octokit
is an organization, so this is just going to fail miserably with the default. Not sure what to put here, so let's leave it empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see it's also used to find the right remote (I have both my fork and the upstream octokit
repos tracked as remotes, so perhaps this needs to be two variables?
@naveensrinivasan this is looking really great, thanks for taking the time to work through on this. I'll have a play around with it next week, just a couple of questions about the parameters used to identify the GitHub account owner (versus the organization the repository belongs to). |
let private isRunningOnMono = System.Type.GetType ("Mono.Runtime") <> null | ||
|
||
let rec private retry count asyncF = | ||
// This retry logic causes an exception on Mono: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be working on Mono master
- is there a specific build we should be using here to ensure this works on Mono, or is it too early to rely on this fix being present?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isRunningOnMono
is used for SourceLink
. Sourcelink is excluded on mono https://github.com/fsharp/FAKE/blob/master/build.fsx#L304
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
30987f8
to
cd4f951
Compare
@shiftkey What do you want to do this PR? |
@naveensrinivasan I still like the idea of this, I'm just trying to figure out the best way to incorporate this into our processes - for example, AppVeyor supports publishing GitHub releases too. |
FWIW, I think it's always better to have your processes baked into source, rather than clicky clicky config on a CI server. That said, there are options for CI config in source, e.g. |
@adamralph fair enough - and packages are already created locally. I'm just trying to tackle two different things here which are tangentially related to publishing releases:
You can see what this looks like when you drive it from config rather than the server's settings... |
The one thing I'd probably do differently to that example is to put as much as possible into something decoupled from appveyor, e.g |
Im going to close this one out since it never quite got there, and we are now moving to CAKE anyway. The good news is we intend to get deployment/packaging/publishing handled in the CAKE scripts 👍 |
Deploying new releases using octokit #905