From 13c7a200f0c8763801eed354f5b20d46e25b98b8 Mon Sep 17 00:00:00 2001 From: nivalxer Date: Mon, 18 Aug 2025 15:23:14 +0800 Subject: [PATCH 1/3] ci:add .net7 target for tests. --- .github/workflows/build-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index e7658d69..1e407351 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -29,7 +29,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}}" From c27bbb8b14635571f0b1d9ffa5a8cdff499de3b8 Mon Sep 17 00:00:00 2001 From: nivalxer Date: Mon, 18 Aug 2025 15:29:48 +0800 Subject: [PATCH 2/3] ci:disable default Github Package push --- .github/workflows/build-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 1e407351..81296fc7 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -10,7 +10,7 @@ on: publish-github-package: type: boolean description: 'Github Package push' - default: true + default: false required: false publish-myget-package: type: boolean From 26246de52fdcf2025fe1ac2207bc5d96dc2ce69d Mon Sep 17 00:00:00 2001 From: nivalxer Date: Mon, 18 Aug 2025 15:48:46 +0800 Subject: [PATCH 3/3] ci:remove github packaget push --- .github/workflows/build-ci.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 81296fc7..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: false - required: false publish-myget-package: type: boolean description: 'MyGet Package push' @@ -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..."