From fcda2ffb1f1c61eaaed8791129102f449feaa74b Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 02:28:25 -0500 Subject: [PATCH 01/17] Added nuget packages source --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44dac993db..a324fbb7c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,6 +37,40 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} + PublishGithub: + if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') + needs: Test + runs-on: ubuntu-latest + steps: + - name: Chectout + uses: actions/checkout@v4 + + - name: Setup .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + + - name: Set Version + run: git rev-list --count HEAD | xargs printf 'CI%05d' | xargs -I{} echo 'VERSION_SUFFIX={}' >> $GITHUB_ENV + + - name : Pack (Neo) + run: | + dotnet pack \ + --configuration Debug \ + --output ./out \ + --version-suffix ${{ env.VERSION_SUFFIX }} + + - name: Remove Unwanted Files + working-directory: ./out + run: | + rm -v Neo.CLI* + rm -v Neo.GUI* + + - name: Publish to Github Packages + run: | + dotnet nuget add source --username neo-project --password ${{ secrets.GITHUB_TOKEN }} --name github "https://nuget.pkg.github.com/neo-project/index.json" + dotnet nuget push ./out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" + PublishMyGet: if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') needs: Test From 29b47812df7ef1ef6e685fd9c4abd9b6667324d5 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 02:31:56 -0500 Subject: [PATCH 02/17] test --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a324fbb7c4..0af50c4823 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} PublishGithub: - if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') + #if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') needs: Test runs-on: ubuntu-latest steps: From 1ec75c2f5c13264e57a7beada40543a22866a87b Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 02:35:52 -0500 Subject: [PATCH 03/17] Changed to windows --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0af50c4823..3c51cbb8c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: PublishGithub: #if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') needs: Test - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Chectout uses: actions/checkout@v4 From 6fc072debfe7f7772433d677a6afee11bf35b2f5 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 02:53:29 -0500 Subject: [PATCH 04/17] fixed version --- .github/workflows/main.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c51cbb8c5..ebc379043f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,15 +50,14 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} - - name: Set Version - run: git rev-list --count HEAD | xargs printf 'CI%05d' | xargs -I{} echo 'VERSION_SUFFIX={}' >> $GITHUB_ENV - - name : Pack (Neo) run: | - dotnet pack \ - --configuration Debug \ - --output ./out \ - --version-suffix ${{ env.VERSION_SUFFIX }} + $VERSION_SUFFIX=git rev-list --count HEAD + $VERSION_SUFFIX="CI$VERSION_SUFFIX" + dotnet pack ` + --configuration Debug ` + --output ./out ` + --version-suffix $VERSION_SUFFIX - name: Remove Unwanted Files working-directory: ./out From 9fd73497ee94c385069f68e0d751b9858f615242 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 03:00:20 -0500 Subject: [PATCH 05/17] fix --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ebc379043f..eaa709bfc1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: PublishGithub: #if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') - needs: Test + #needs: Test runs-on: windows-latest steps: - name: Chectout @@ -66,9 +66,10 @@ jobs: rm -v Neo.GUI* - name: Publish to Github Packages + working-directory: ./out run: | dotnet nuget add source --username neo-project --password ${{ secrets.GITHUB_TOKEN }} --name github "https://nuget.pkg.github.com/neo-project/index.json" - dotnet nuget push ./out/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" + dotnet nuget push --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" PublishMyGet: if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') From 55e394d20907776ac897f6815435c5917bd2e569 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 03:06:56 -0500 Subject: [PATCH 06/17] fix nuget --- .github/workflows/main.yml | 2 +- NuGet.Config | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eaa709bfc1..fc3b635a08 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,7 +69,7 @@ jobs: working-directory: ./out run: | dotnet nuget add source --username neo-project --password ${{ secrets.GITHUB_TOKEN }} --name github "https://nuget.pkg.github.com/neo-project/index.json" - dotnet nuget push --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" + dotnet nuget push * --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" PublishMyGet: if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') diff --git a/NuGet.Config b/NuGet.Config index c06788942f..ae308343f3 100644 --- a/NuGet.Config +++ b/NuGet.Config @@ -1,8 +1,9 @@ - + + \ No newline at end of file From 3d89ada5dcaf875f4e5603b11d43da6299e16555 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 03:10:20 -0500 Subject: [PATCH 07/17] fixed nuget.config --- .github/workflows/main.yml | 52 +++++++++++++++++++------------------- NuGet.Config | 5 ++-- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc3b635a08..afdbcdaf46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,32 +10,32 @@ env: jobs: - Test: - timeout-minutes: 15 - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} - - name: Check format - if: matrix.os == 'ubuntu-latest' - run: | - dotnet format --verify-no-changes --verbosity diagnostic - - name: Test - run: | - find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov - - name: Coveralls - if: matrix.os == 'ubuntu-latest' - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + # Test: + # timeout-minutes: 15 + # strategy: + # matrix: + # os: [ubuntu-latest, windows-latest, macos-latest] + # runs-on: ${{ matrix.os }} + # steps: + # - name: Checkout + # uses: actions/checkout@v4 + # - name: Setup .NET + # uses: actions/setup-dotnet@v4 + # with: + # dotnet-version: ${{ env.DOTNET_VERSION }} + # - name: Check format + # if: matrix.os == 'ubuntu-latest' + # run: | + # dotnet format --verify-no-changes --verbosity diagnostic + # - name: Test + # run: | + # find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild + # dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov + # - name: Coveralls + # if: matrix.os == 'ubuntu-latest' + # uses: coverallsapp/github-action@master + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} PublishGithub: #if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') diff --git a/NuGet.Config b/NuGet.Config index ae308343f3..61b4900b82 100644 --- a/NuGet.Config +++ b/NuGet.Config @@ -1,9 +1,8 @@ - + - - \ No newline at end of file + From a8a8b3aafd4cc82c773c3f17b20cf8a057fab460 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 03:11:08 -0500 Subject: [PATCH 08/17] Fixed test --- .github/workflows/main.yml | 52 +++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index afdbcdaf46..fc3b635a08 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,32 +10,32 @@ env: jobs: - # Test: - # timeout-minutes: 15 - # strategy: - # matrix: - # os: [ubuntu-latest, windows-latest, macos-latest] - # runs-on: ${{ matrix.os }} - # steps: - # - name: Checkout - # uses: actions/checkout@v4 - # - name: Setup .NET - # uses: actions/setup-dotnet@v4 - # with: - # dotnet-version: ${{ env.DOTNET_VERSION }} - # - name: Check format - # if: matrix.os == 'ubuntu-latest' - # run: | - # dotnet format --verify-no-changes --verbosity diagnostic - # - name: Test - # run: | - # find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild - # dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov - # - name: Coveralls - # if: matrix.os == 'ubuntu-latest' - # uses: coverallsapp/github-action@master - # with: - # github-token: ${{ secrets.GITHUB_TOKEN }} + Test: + timeout-minutes: 15 + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Check format + if: matrix.os == 'ubuntu-latest' + run: | + dotnet format --verify-no-changes --verbosity diagnostic + - name: Test + run: | + find tests -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild + dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${GITHUB_WORKSPACE}/coverage/lcov + - name: Coveralls + if: matrix.os == 'ubuntu-latest' + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} PublishGithub: #if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') From adb68ada6e72123719cfb271fef6a5c2e8d20d04 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 03:20:32 -0500 Subject: [PATCH 09/17] Nuget fixes --- .github/workflows/main.yml | 19 ++++++++++--------- NuGet.Config | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc3b635a08..977e115cfd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: PublishGithub: #if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') #needs: Test - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Chectout uses: actions/checkout@v4 @@ -50,14 +50,15 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Set Version + run: git rev-list --count HEAD | xargs printf 'CI%05d' | xargs -I{} echo 'VERSION_SUFFIX={}' >> $GITHUB_ENV + - name : Pack (Neo) run: | - $VERSION_SUFFIX=git rev-list --count HEAD - $VERSION_SUFFIX="CI$VERSION_SUFFIX" - dotnet pack ` - --configuration Debug ` - --output ./out ` - --version-suffix $VERSION_SUFFIX + dotnet pack \ + --configuration Debug \ + --output ./out \ + --version-suffix ${{ env.VERSION_SUFFIX }} - name: Remove Unwanted Files working-directory: ./out @@ -68,8 +69,8 @@ jobs: - name: Publish to Github Packages working-directory: ./out run: | - dotnet nuget add source --username neo-project --password ${{ secrets.GITHUB_TOKEN }} --name github "https://nuget.pkg.github.com/neo-project/index.json" - dotnet nuget push * --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" + dotnet nuget add source --username neo-project --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github2 "https://nuget.pkg.github.com/neo-project/index.json" + dotnet nuget push * --api-key ${{ secrets.GITHUB_TOKEN }} --source github2 PublishMyGet: if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') diff --git a/NuGet.Config b/NuGet.Config index 61b4900b82..f7ce69db29 100644 --- a/NuGet.Config +++ b/NuGet.Config @@ -2,7 +2,7 @@ - + From 3d22700fcc8ed1fd66731022b39d509e55ce5946 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 03:37:05 -0500 Subject: [PATCH 10/17] git --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 977e115cfd..683747f0a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,8 +69,11 @@ jobs: - name: Publish to Github Packages working-directory: ./out run: | - dotnet nuget add source --username neo-project --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github2 "https://nuget.pkg.github.com/neo-project/index.json" - dotnet nuget push * --api-key ${{ secrets.GITHUB_TOKEN }} --source github2 + dotnet nuget push * \ + --source https://nuget.pkg.github.com/neo-project/index.json \ + --api-key "${{ secrets.PKGS_TOKEN }}" \ + --disable-buffering \ + --no-service-endpoint; PublishMyGet: if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') From ebce59a7912b73e1f53444fa72a8860c27e1aad4 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 03:39:14 -0500 Subject: [PATCH 11/17] working release --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 683747f0a7..50602a03fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,8 +38,8 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} PublishGithub: - #if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') - #needs: Test + if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') + needs: Test runs-on: ubuntu-latest steps: - name: Chectout From 7cea7bc583878459064b99470518182c8aad02e6 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 11:03:26 -0500 Subject: [PATCH 12/17] Added cron job --- .github/workflows/pkgs-delete.yml | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/pkgs-delete.yml diff --git a/.github/workflows/pkgs-delete.yml b/.github/workflows/pkgs-delete.yml new file mode 100644 index 0000000000..c70c12a9ad --- /dev/null +++ b/.github/workflows/pkgs-delete.yml @@ -0,0 +1,51 @@ +name: Nuget Package Cleanup (github) + +on: + schedule: + - cron: '0 0 * * *' # Run every day at 24:00 + +jobs: + delete-pkgs: + name: Delete Old Nuget Packages + runs-on: ubuntu-latest + + steps: + - name: Delete Neo Package + uses: actions/delete-package-versions@v4 + with: + package-name: Neo + package-type: nuget + min-versions-to-keep: 5 + token: "${{ secrets.PKGS_TOKEN }}" + + - name: Delete Neo.ConsoleService Package + uses: actions/delete-package-versions@v4 + with: + package-name: Neo.ConsoleService + package-type: nuget + min-versions-to-keep: 5 + token: "${{ secrets.PKGS_TOKEN }}" + + - name: Delete Neo.ConsoleService Package + uses: actions/delete-package-versions@v4 + with: + package-name: Neo.ConsoleService + package-type: nuget + min-versions-to-keep: 5 + token: "${{ secrets.PKGS_TOKEN }}" + + - name: Delete Neo.Json Package + uses: actions/delete-package-versions@v4 + with: + package-name: Neo.Json + package-type: nuget + min-versions-to-keep: 5 + token: "${{ secrets.PKGS_TOKEN }}" + + - name: Delete Neo.VM Package + uses: actions/delete-package-versions@v4 + with: + package-name: Neo.VM + package-type: nuget + min-versions-to-keep: 5 + token: "${{ secrets.PKGS_TOKEN }}" From e53a6a464cd8ff88d5ad8afeb1f172c14238f532 Mon Sep 17 00:00:00 2001 From: Christopher R Schuchardt Date: Tue, 9 Jan 2024 11:15:04 -0500 Subject: [PATCH 13/17] switch to keep 3 packages versions --- .github/workflows/pkgs-delete.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pkgs-delete.yml b/.github/workflows/pkgs-delete.yml index c70c12a9ad..f1cb235812 100644 --- a/.github/workflows/pkgs-delete.yml +++ b/.github/workflows/pkgs-delete.yml @@ -15,7 +15,7 @@ jobs: with: package-name: Neo package-type: nuget - min-versions-to-keep: 5 + min-versions-to-keep: 3 token: "${{ secrets.PKGS_TOKEN }}" - name: Delete Neo.ConsoleService Package @@ -23,7 +23,7 @@ jobs: with: package-name: Neo.ConsoleService package-type: nuget - min-versions-to-keep: 5 + min-versions-to-keep: 3 token: "${{ secrets.PKGS_TOKEN }}" - name: Delete Neo.ConsoleService Package @@ -31,7 +31,7 @@ jobs: with: package-name: Neo.ConsoleService package-type: nuget - min-versions-to-keep: 5 + min-versions-to-keep: 3 token: "${{ secrets.PKGS_TOKEN }}" - name: Delete Neo.Json Package @@ -39,7 +39,7 @@ jobs: with: package-name: Neo.Json package-type: nuget - min-versions-to-keep: 5 + min-versions-to-keep: 3 token: "${{ secrets.PKGS_TOKEN }}" - name: Delete Neo.VM Package @@ -47,5 +47,5 @@ jobs: with: package-name: Neo.VM package-type: nuget - min-versions-to-keep: 5 + min-versions-to-keep: 3 token: "${{ secrets.PKGS_TOKEN }}" From 1c16f2ea5d21ff0d69989d33e1d192c5c5c7de28 Mon Sep 17 00:00:00 2001 From: Shargon Date: Tue, 13 Feb 2024 01:51:30 -0800 Subject: [PATCH 14/17] Update .github/workflows/main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d84c48bee..14692cf1bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: needs: Test runs-on: ubuntu-latest steps: - - name: Chectout + - name: Checkout uses: actions/checkout@v4 - name: Setup .NET Core From 557e812b0564146aeb51c4c862a96476961e342f Mon Sep 17 00:00:00 2001 From: Christopher Schuchardt Date: Tue, 13 Feb 2024 07:06:27 -0500 Subject: [PATCH 15/17] Update .github/workflows/main.yml Co-authored-by: Shargon --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 14692cf1bf..e3b866056a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,7 +56,7 @@ jobs: - name : Pack (Neo) run: | dotnet pack \ - --configuration Debug \ + --configuration Release \ --output ./out \ --version-suffix ${{ env.VERSION_SUFFIX }} From 365ef005823f45b30df76cbc095219807322d114 Mon Sep 17 00:00:00 2001 From: Fernando Diaz Toledano Date: Wed, 14 Feb 2024 10:18:08 +0100 Subject: [PATCH 16/17] change secret --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e3b866056a..4f7696cf6e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,6 +36,7 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.net7.0.info PublishGithub: if: github.ref == 'refs/heads/master' && startsWith(github.repository, 'neo-project/') @@ -71,7 +72,7 @@ jobs: run: | dotnet nuget push * \ --source https://nuget.pkg.github.com/neo-project/index.json \ - --api-key "${{ secrets.PKGS_TOKEN }}" \ + --api-key "${{ secrets.GITHUB_TOKEN }}" \ --disable-buffering \ --no-service-endpoint; From b1dd8e0a6a7635b6f242820c50e0d23f12cc09e1 Mon Sep 17 00:00:00 2001 From: Fernando Diaz Toledano Date: Wed, 14 Feb 2024 10:19:08 +0100 Subject: [PATCH 17/17] change delete also --- .github/workflows/pkgs-delete.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pkgs-delete.yml b/.github/workflows/pkgs-delete.yml index f1cb235812..16855f1070 100644 --- a/.github/workflows/pkgs-delete.yml +++ b/.github/workflows/pkgs-delete.yml @@ -16,7 +16,7 @@ jobs: package-name: Neo package-type: nuget min-versions-to-keep: 3 - token: "${{ secrets.PKGS_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" - name: Delete Neo.ConsoleService Package uses: actions/delete-package-versions@v4 @@ -24,7 +24,7 @@ jobs: package-name: Neo.ConsoleService package-type: nuget min-versions-to-keep: 3 - token: "${{ secrets.PKGS_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" - name: Delete Neo.ConsoleService Package uses: actions/delete-package-versions@v4 @@ -32,7 +32,7 @@ jobs: package-name: Neo.ConsoleService package-type: nuget min-versions-to-keep: 3 - token: "${{ secrets.PKGS_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" - name: Delete Neo.Json Package uses: actions/delete-package-versions@v4 @@ -40,7 +40,7 @@ jobs: package-name: Neo.Json package-type: nuget min-versions-to-keep: 3 - token: "${{ secrets.PKGS_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" - name: Delete Neo.VM Package uses: actions/delete-package-versions@v4 @@ -48,4 +48,4 @@ jobs: package-name: Neo.VM package-type: nuget min-versions-to-keep: 3 - token: "${{ secrets.PKGS_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}"