diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2c2135..174cbf4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,6 @@ jobs: - uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x - source-url: https://nuget.pkg.github.com/elastic/index.json - env: - NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: ./build.sh build -s true name: Build @@ -47,7 +44,8 @@ jobs: if: github.event_name == 'push' && startswith(github.ref, 'refs/heads') shell: bash run: | - until dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate --no-symbols; do echo "Retrying"; sleep 1; done; + dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/elastic/index.json" + until dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate --no-symbols --source "github"; do echo "Retrying"; sleep 1; done; # Github packages requires authentication, this is likely going away in the future so for now we publish to feedz.io - run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.FEEDZ_IO_API_KEY}} -s https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index c7675f9..0194c62 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -20,6 +20,7 @@ on: permissions: contents: read + checks: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -32,7 +33,7 @@ defaults: jobs: tests: runs-on: windows-2022 - + steps: - name: Checkout uses: actions/checkout@v4 @@ -45,7 +46,7 @@ jobs: git tag --list name: Fetch Tags - - uses: actions/cache@v3 + - uses: actions/cache@v4 name: NuGet package cache with: path: ~/.nuget/packages @@ -66,7 +67,7 @@ jobs: - name: Test Results if: success() || failure() - uses: mikepenz/action-junit-report@v3 + uses: mikepenz/action-junit-report@v4 with: report_paths: 'build/output/junit-*.xml' github_token: ${{ secrets.GITHUB_TOKEN }}