diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index aea0538..69031f9 100755 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -9,9 +9,6 @@ on: permissions: contents: write -env: - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} - jobs: publish: name: Publish @@ -23,6 +20,7 @@ jobs: additional-test-arguments: '--logger GitHubActions' secrets: nuget-key: ${{ secrets.NUGET_KEY }} + api-key: ${{ secrets.ANTHROPIC_API_KEY }} release: name: Release diff --git a/src/tests/Anthropic.IntegrationTests/Tests.cs b/src/tests/Anthropic.IntegrationTests/Tests.cs index 52c32b5..3b25213 100755 --- a/src/tests/Anthropic.IntegrationTests/Tests.cs +++ b/src/tests/Anthropic.IntegrationTests/Tests.cs @@ -6,6 +6,7 @@ public partial class Tests private static AnthropicApi GetAuthorizedApi() { var apiKey = + Environment.GetEnvironmentVariable("API_KEY") ?? Environment.GetEnvironmentVariable("ANTHROPIC_API_KEY") ?? throw new AssertInconclusiveException("ANTHROPIC_API_KEY environment variable is not found.");