Skip to content

Commit

Permalink
Fix NuGet testing feed appearing in official releases
Browse files Browse the repository at this point in the history
Fixes #1911
  • Loading branch information
PathogenDavid committed Jul 16, 2024
1 parent 3464e65 commit b8ffae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-portable-zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
]

nuget_api_url = os.getenv('NUGET_API_URL')
if nuget_api_url is not None:
if nuget_api_url is not None and nuget_api_url != 'https://api.nuget.org/v3/index.json':
nuget_config.append(f' <add key="NuGet Package Testing Feed" value="{nuget_api_url}" />')

# Unstable builds of Bonsai will automatically reference the GitHub Packages feed
Expand All @@ -48,7 +48,7 @@
nuget_config.append(' <add key="ClearTextPassword" value="YOUR_GITHUB_PERSONAL_ACCESS_TOKEN" />')
nuget_config.append(' </Bonsai_x0020_Unstable>')
nuget_config.append(' </packageSourceCredentials>')
else:
else:
nuget_config.append(' </packageSources>')

nuget_config.append('</configuration>')
Expand Down

0 comments on commit b8ffae0

Please sign in to comment.