File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 77 - ' !**/*.md'
88 workflow_dispatch :
99 inputs :
10- publish-github-package :
11- type : boolean
12- description : ' Github Package push'
13- default : false
14- required : false
1510 publish-myget-package :
1611 type : boolean
1712 description : ' MyGet Package push'
7368 done
7469
7570 - name : Package
76- if : ${{ inputs.publish-github-package || inputs.publish- myget-package}}
71+ if : ${{ inputs.publish-myget-package }}
7772 shell : bash
7873 run : |
7974 for project in $(find ./src -name "*.csproj"); do
@@ -85,20 +80,12 @@ jobs:
8580 run : dotnet tool install gpr -g
8681
8782 - name : Publish CI Packages
88- if : ${{ inputs.publish-github-package || inputs.publish- myget-package}}
83+ if : ${{ inputs.publish-myget-package }}
8984 shell : bash
9085 run : |
9186 for package in $(find ./artifacts/packages/ -name "*.nupkg" -o -name "*.snupkg"); do
9287 echo "$package": Pushing $package...
9388
94- if [ "${{ inputs.publish-github-package }}" = "true" ]; then
95- # GitHub
96- echo "Pushing to GitHub Package Registry..."
97- gpr push "$package" -k ${{ secrets.GITHUB_TOKEN }} || echo "Skipping: Package push failed or already exists."
98- else
99- echo "Skipping: Pushing to GitHub Package Registry is disabled."
100- fi
101-
10289 # MyGet
10390 if [ "${{ inputs.publish-myget-package }}" = "true" ]; then
10491 echo "Pushing to MyGet..."
You can’t perform that action at this time.
0 commit comments