From 425881637797b4220c2b33439d12de724d48d806 Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:40:21 -0500 Subject: [PATCH 1/3] Fix sign --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a7eeb3..eafc040 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,12 +62,17 @@ jobs: Sign: needs: Test - if: github.event_name == 'release' && github.event.action == 'published' + # if: github.event_name == 'release' && github.event.action == 'published' runs-on: windows-latest steps: - name: Checkout Repository uses: actions/checkout@v4 + - name: Download module + uses: actions/download-artifact@v4 + with: + name: module + - name: Import certificate env: CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }} @@ -83,7 +88,7 @@ jobs: run: | $config = Import-PowerShellDataFile SignSettings.psd1 $config['Certificate'] = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert - Set-Location .\src + Set-Location .\module Set-AuthenticodeSignature @config - name: Create and sign catalog file @@ -91,7 +96,7 @@ jobs: $config = Import-PowerShellDataFile SignSettings.psd1 $config['FilePath'] = 'AnyPackage.Appx.cat' $config['Certificate'] = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert - Set-Location .\src + Set-Location .\module New-FileCatalog $config['FilePath'] -CatalogVersion 2 Set-AuthenticodeSignature @config @@ -99,7 +104,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: module-signed - path: ./src/ + path: ./module/ Publish: needs: Sign From 37ed00a03f74c03d15c50772c6a7685013925154 Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:45:27 -0500 Subject: [PATCH 2/3] Use explicit path on download --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eafc040..f9cd798 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,7 @@ jobs: uses: actions/download-artifact@v4 with: name: module + path: module - name: Import certificate env: From e6226746474d66ee586917bc680a68f92f79a74e Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Tue, 1 Apr 2025 23:47:58 -0500 Subject: [PATCH 3/3] Disable test execution --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9cd798..5a3f8cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,7 @@ jobs: Sign: needs: Test - # if: github.event_name == 'release' && github.event.action == 'published' + if: github.event_name == 'release' && github.event.action == 'published' runs-on: windows-latest steps: - name: Checkout Repository