diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index e7658d69..2c8f9be7 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -7,11 +7,6 @@ on: - '!**/*.md' workflow_dispatch: inputs: - publish-github-package: - type: boolean - description: 'Github Package push' - default: true - required: false publish-myget-package: type: boolean description: 'MyGet Package push' @@ -29,7 +24,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: 9.x + dotnet-version: 7.x - name: Build Reason run: "echo ref: ${{github.ref}} event: ${{github.event_name}}" @@ -73,7 +68,7 @@ jobs: done - name: Package - if: ${{ inputs.publish-github-package || inputs.publish-myget-package}} + if: ${{ inputs.publish-myget-package }} shell: bash run: | for project in $(find ./src -name "*.csproj"); do @@ -85,20 +80,12 @@ jobs: run: dotnet tool install gpr -g - name: Publish CI Packages - if: ${{ inputs.publish-github-package || inputs.publish-myget-package}} + if: ${{ inputs.publish-myget-package }} shell: bash run: | for package in $(find ./artifacts/packages/ -name "*.nupkg" -o -name "*.snupkg"); do echo "$package": Pushing $package... - if [ "${{ inputs.publish-github-package }}" = "true" ]; then - # GitHub - echo "Pushing to GitHub Package Registry..." - gpr push "$package" -k ${{ secrets.GITHUB_TOKEN }} || echo "Skipping: Package push failed or already exists." - else - echo "Skipping: Pushing to GitHub Package Registry is disabled." - fi - # MyGet if [ "${{ inputs.publish-myget-package }}" = "true" ]; then echo "Pushing to MyGet..."