File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2020 - name : Restore dependencies
2121 run : dotnet restore
2222
23- - name : Publish Windows Forms App with ClickOnce
23+ - name : Publish Windows Forms App with ClickOnce without version
24+ if : " !startsWith(github.ref, 'refs/tags/')"
2425 run : dotnet publish -c Release -r win-x64 --self-contained false /p:PublishSingleFile=true /p:ClickOnceDeploymentBuild=true /p:PublishProfile="./QuickIPchange/My Project/PublishProfiles/ClickOnceProfile.pubxml"
26+
27+ - name : Get the version Tag
28+ if : startsWith(github.ref, 'refs/tags/')
29+ id : vars
30+ run : echo ${{ github.ref_name }}
31+
32+ - name : Publish Windows Forms App with ClickOnce with version
33+ if : startsWith(github.ref, 'refs/tags/')
34+ run : dotnet publish -c Release -r win-x64 --self-contained false /p:PublishSingleFile=true /p:ClickOnceDeploymentBuild=true /p:PublishProfile="./QuickIPchange/My Project/PublishProfiles/ClickOnceProfile.pubxml" /p:AssemblyVersion=${{ github.ref_name }} /p:Version=${{ github.ref_name }}
2535
2636 - name : Upload Artifact
2737 uses : actions/upload-artifact@v2
You can’t perform that action at this time.
0 commit comments