I spend almost one day for ClickOnce in GitHub, I googled but I did not get any clear solution for this, I am really happy at last I have successfully done it. I am going to share how to push ClickOne in GitHub step by step -
Right-Click on Project -> Properties
Step-2 Installation URL
Select Publish tab from project property and give Installation Folder URL and Update location
For example -
From project property click Signing tab and select “Sign the ClickOnce manifests”
Before pushing you have to complete Step-4 and Step-5
You have to include publish directory with your Git repository, it means simply delete “
publish/” from the Git ignore file or explicitly allow the publish directory for Git repository by adding
!publish/ to Git ignore file
.gitattributes allow Git with all line endings of the ClickOnce deployment files.
More details about Dealing with line endings.
Click “Publish Wizard” from project property for publishing if you have new version just click “Publish Now”