diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a7eeb3..5a3f8cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,6 +68,12 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Download module + uses: actions/download-artifact@v4 + with: + name: module + path: module + - name: Import certificate env: CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }} @@ -83,7 +89,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 +97,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 +105,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: module-signed - path: ./src/ + path: ./module/ Publish: needs: Sign