Skip to content

Commit 646f1e3

Browse files
authored
Update main.yml
1 parent 38eb67d commit 646f1e3

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ jobs:
142142
# run: |
143143
# pipenv run pyrevit sign products
144144

145-
- name: Build Installers
146-
run: |
147-
pipenv run pyrevit build installers
148-
149145
# - name: Sign Installers
150146
# if: (github.repository == env.MainRepo)
151147
# env:
@@ -159,7 +155,29 @@ jobs:
159155
# default retention period is 90 days
160156
# https://github.com/marketplace/actions/upload-a-build-artifact#retention-period
161157

162-
- name: Sign files with Trusted Signing
158+
- name: Sign files with Trusted Signing (dlls)
159+
if: (github.repository == env.MainRepo)
160+
uses: azure/[email protected]
161+
with:
162+
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
163+
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
164+
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
165+
endpoint: ${{ secrets.AZURE_ENDPOINT }}
166+
trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }}
167+
certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }}
168+
169+
# Sign all exes inside the folder
170+
files-folder: bin/
171+
files-folder-filter: pyrevit*.dll
172+
file-digest: SHA256
173+
timestamp-rfc3161: http://timestamp.acs.microsoft.com
174+
timestamp-digest: SHA256
175+
176+
- name: Build Installers
177+
run: |
178+
pipenv run pyrevit build installers
179+
180+
- name: Sign files with Trusted Signing (installers)
163181
if: (github.repository == env.MainRepo)
164182
uses: azure/[email protected]
165183
with:

0 commit comments

Comments
 (0)