Skip to content

Commit

Permalink
Fix signing (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto authored Mar 22, 2023
1 parent 34a239f commit ccd84f7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Download module
uses: actions/download-artifact@v3
with:
name: module
path: module

- name: Import certificate
env:
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
Expand All @@ -81,23 +87,23 @@ 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
run: |
$config = Import-PowerShellDataFile SignSettings.psd1
$config['FilePath'] = 'AnyPackage.Programs.cat'
$config['Certificate'] = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert
Set-Location .\src
Set-Location .\module
New-FileCatalog $config['FilePath'] -CatalogVersion 2
Set-AuthenticodeSignature @config
- name: Upload module
uses: actions/upload-artifact@v3
with:
name: module-signed
path: ./src/
path: ./module/

Publish:
needs: Sign
Expand Down

0 comments on commit ccd84f7

Please sign in to comment.