diff --git a/.github/workflows/live-test.yml b/.github/workflows/live-test.yml index b3874d5b..a8a706e7 100644 --- a/.github/workflows/live-test.yml +++ b/.github/workflows/live-test.yml @@ -35,7 +35,7 @@ jobs: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} with: name: test-artifacts diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4943014..54325dc6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: ${{ env.version_suffix_args}} - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} with: name: build-artifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2486a02..05989aaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,7 @@ jobs: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} with: name: build-artifacts @@ -67,16 +67,13 @@ jobs: name: Publish Package needs: build runs-on: ubuntu-latest - permissions: - packages: write - contents: write steps: - - uses: actions/download-artifact@v2 - - # Append the nuget package to the github release that triggered this workflow - name: Checkout code uses: actions/checkout@v2 + - name: Download build artifacts + uses: actions/download-artifact@v4 + - name: Upload release asset if: github.event_name == 'release' run: gh release upload ${{ github.event.release.tag_name }} @@ -95,7 +92,8 @@ jobs: - name: Publish package to local feed run: dotnet nuget push ${{github.workspace}}/build-artifacts/packages/*.nupkg - --source github + --source "github" + --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate - name: Publish package to nuget.org