Closed pcgeek86 closed 8 years ago
I've got my LabBuilder Module doing this. You can see the AppVeyor.yml here.
On each commit it:
It would be fairly easy to adapt this process to your module if it would help?
That sounds good to me, @PlagueHO :) I added a few specific child tasks to the original report. Don't forget to patch the module manifest! :smile: I did something similar to you, in this project: https://github.com/pcgeek86/azure-powershell-extensions
Nice! I really do need to automate the module manifest build number - mind if I borrow your https://github.com/pcgeek86/azure-powershell-extensions/blob/production/Patch-ModuleManifest.ps1? :smile:
@PlagueHO You're more than welcome to use it! Sorry, didn't see your reply right away last night.
ps. There's a better way of substituting the build number -- mine uses regular expressions, which is rather "hacky."
Thanks @pcgeek86 ! I actually ended up snagging your Regex and using that. I reversed the process though so that the Version number in the Manifest is the master version. The AppVeyor.yml script reads that Version number out of the manifest when it first starts and then adds the build number to it and:
The reason I did this is that I have a user who automates their environments by pulling the master branch directly from GitHub. Therefore they needed the correct major/minor version number (minus the build) in the manifest to begin with. This just enables me to have a single master version number location that everything pulls from.
Thanks again!
Anyway, do you want me to pop through a PR with the AppVeyor.yml for this project? If so, shall I use your model or my one?
@PlagueHO A PR would be great! I'll probably substitute that with my encrypted NuGet API key for the PowerShell Gallery, and then point AppVeyor over at this repo. Thanks!
We need to configure a continuous integration system, such as AppVeyor, to automatically publish new versions of the PSGitHub PowerShell module to the PowerShell Gallery. We could potentially use Azure Automation for this purpose as well, by triggering a Runbook using webhook integration.
Publish-Module
, if commit is againstmaster
branchNOTE: New versions of the module should only be published when code is pushed to a certain Git branch or Git tag.
If you have a proposal for the best method of configuring this, then let me know. I've successfully used AppVeyor for this purpose in the past, but we don't have to use it either.