How can I deploy on public pull requests?
I'm in the process of writing a library that utilizes a plugin system, and it's difficult to test the changes without having to merge it into master and deploy it to my feed. I've opened a MyGet feed just for pull request deployments, but I can't figure out how to get AppVeyor to deploy conditionally on that feed on a pull request build.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 12 Nov, 2015 04:31 AM
Deployment during PRs can be allowed for private repositories only.
2 Posted by ronny6993 on 12 Nov, 2015 04:35 AM
Is there no way to enable them for public repositories?
Support Staff 3 Posted by Feodor Fitsner on 12 Nov, 2015 04:51 AM
Currently not, but we have a request for implementing "trusted" PR authors.
4 Posted by ronny6993 on 12 Nov, 2015 06:34 AM
Is there a way to conditionally run commands on pull requests then? If AppVeyor won't deploy it as a part of the process, then it would still be possible to manually push the package as a post-build command.
I'm not really worried about "trust" on the feed side as it's a specialized MyGet feed, and users are able to add their own packages to it anyways.
Support Staff 5 Posted by Feodor Fitsner on 12 Nov, 2015 11:03 PM
Yes, there is
APPVEYOR_PULL_REQUEST_NUMBER
environment variable with PR number if it's PR build. All variables are listed here: http://www.appveyor.com/docs/environment-variables6 Posted by phantomtypist on 17 Oct, 2017 07:36 PM
Is there any progress on that "request for implementing 'trusted' PR authors"?
I would really like to have the deployment automatically work on PR's from trusted authors of the repo.
We are publishing (in the deployment) NuGet packages to a CI feed on MyGet. We then cherry pick from there and promote to a pre-release feed on MyGet.... and from there promote to official NuGet.org feed.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:20 AM.