Skip to content

Commit 26246de

Browse files
committed
ci:remove github packaget push
1 parent c27bbb8 commit 26246de

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/build-ci.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ on:
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'
@@ -73,7 +68,7 @@ jobs:
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..."

0 commit comments

Comments
 (0)