Module publishing process.

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
falconwmua
Posts: 2
Last visit: Mon Feb 04, 2019 7:57 am

Module publishing process.

Post by falconwmua »

Does anyone have a good process or workflow for getting a module from source control to update to published module via PowerShellGet to changes checked into back into source control. Here is my process so far:
  • Get latest from source control in PSS
    Make changes and test
    Deploy to Temp folder in PSS
    Run Publish-Module cmdlet against temp folder
    If publish succeeds, check-in changes to source control
I'm not looking for feature changes at this time just so see if someone has a better way to do this because I'm about to have to expand the development of these module beyond myself on my team.
User avatar
SAPIEN Support Forums
Posts: 945
Last visit: Thu Oct 22, 2015 1:10 pm

Module publishing process.

Post by SAPIEN Support Forums »

This is an automated post. A real person will respond soon.

Thank you for posting, falconwmua.

Here are some hints to help you get an accurate and complete answer to your question.

Ask in the best forum: If you asked in the wrong forum, just copy your question to the right forum.

Anticipate follow-up questions!

Did you remember to include the following?
  • 1. Product, version and build
    2. 32 or 64 bit product
    3. Operating system, e.g. Windows 7 64 bit.
    4. Attach a screenshot, if applicable
    5. Attach logs, crash reports, etc., in a ZIP file
If not, please take a moment to edit your original post or reply to this one.

*** Make sure you do not post any licensing information ***
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Module publishing process.

Post by davidc »

You can add custom commands to the deploy state:

https://www.sapien.com/blog/2014/04/14/ ... 14-part-3/

Using the additional build commands, you can call PowerShell.exe and pass the command to publish.
Additional Deployment Commands.png
Additional Deployment Commands.png (29.64 KiB) Viewed 4176 times
Part 4 links to all the previous articles on deployment:

https://www.sapien.com/blog/2014/04/21/ ... 14-part-4/


Alternatively, you can use PowerShell Studio's custom menu:

https://www.sapien.com/blog/2013/01/08/ ... ial-oh-my/

https://www.sapien.com/blog/2015/10/01/ ... -template/

David
David
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Module publishing process.

Post by jvierra »

Just a note. The workflow for versioning is nearly always contained in the repository. The authentication is direct by account and the repository software usually posts a challenge for documentation updates if they are not included in source headers.

I would first check with the VCS manager to learn how to best integrate with your VCS. TFS can be extended now with PosH scripts so it can be more tightly integrated.
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked