From 4c6552cdcd3344fc76dd8bc8a5cd088bbea669ea Mon Sep 17 00:00:00 2001 From: June Rhodes Date: Thu, 31 Oct 2024 17:36:28 +1100 Subject: [PATCH] Attempt to fix publishing on GitHub --- .github/workflows/uet.yml | 4 ++-- .../CreateGitHubRelease/CreateGitHubReleaseCommand.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/uet.yml b/.github/workflows/uet.yml index a761b840..b0d7aadf 100644 --- a/.github/workflows/uet.yml +++ b/.github/workflows/uet.yml @@ -717,7 +717,7 @@ jobs: push ` --source https://api.nuget.org/v3/index.json ` --api-key $env:NUGET_API_KEY ` - (Get-ChildItem -Recurse -Filter "*.$PackageVersion.nupkg" | % { $_.FullName }) + (Get-ChildItem -Recurse -Filter "*.${env:UET_PACKAGE_VERSION}.nupkg" | % { $_.FullName }) if ($LastExitCode -ne 0) { Write-Host "dotnet push failed with exit code $LastExitCode" exit $LastExitCode @@ -823,7 +823,7 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build UEFS Container diff --git a/UET/uet/Commands/Internal/CreateGitHubRelease/CreateGitHubReleaseCommand.cs b/UET/uet/Commands/Internal/CreateGitHubRelease/CreateGitHubReleaseCommand.cs index 90079ac1..6404ba26 100644 --- a/UET/uet/Commands/Internal/CreateGitHubRelease/CreateGitHubReleaseCommand.cs +++ b/UET/uet/Commands/Internal/CreateGitHubRelease/CreateGitHubReleaseCommand.cs @@ -97,10 +97,10 @@ public async Task ExecuteAsync(InvocationContext context) }).ToArray(); var schemaOnly = context.ParseResult.GetValueForOption(_options.SchemaOnly); - var pat = Environment.GetEnvironmentVariable("GITHUB_RELEASES_PAT"); + var pat = Environment.GetEnvironmentVariable("UET_GITHUB_RELEASES_PAT"); if (string.IsNullOrWhiteSpace(pat)) { - _logger.LogError("Expected environment variable GITHUB_RELEASES_PAT to be set (this is an internal command)."); + _logger.LogError("Expected environment variable UET_GITHUB_RELEASES_PAT to be set (this is an internal command)."); return 1; }