Skip to content

Commit

Permalink
Update the actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chunfantasy committed Jun 4, 2024
1 parent 64da7bf commit 41eacf5
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@ jobs:
- name: Build
uses: ./.github/actions/build-action

- name: Code signing with Software Trust Manager
uses: digicert/[email protected]

# - name: Fetch certificate file
# shell: bash
# env:
# NORDIC_SIGNING_CERTIFICATE:
# ${{ secrets.NORDIC_SIGNING_CERTIFICATE_PFX }}
# run:
# echo "$NORDIC_SIGNING_CERTIFICATE" | base64 --decode >
# ./nordic_signing_certificate.pfx
# if: github.event_name != 'pull_request'

- name: Fetch certificate file
shell: bash
env:
Expand All @@ -39,11 +26,19 @@ jobs:
- name: Set variables
shell: bash
run: |
echo "::set-output name=version::${GITHUB_REF#refs/tags/v}"
echo "SM_HOST=${{ secrets.NORDIC_SM_HOST }}" >> "$GITHUB_ENV"
echo "SM_API_KEY=${{ secrets.NORDIC_SM_API_KEY }}" >> "$GITHUB_ENV"
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.NORDIC_SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV"
echo "SM_CODE_SIGNING_CERT_SHA1_HASH=${{ env.NORDIC_SM_CERTIFICATE_SHA1_HASH }}" >> "$GITHUB_ENV"
if: github.event_name != 'pull_request'

- name: Code signing with Software Trust Manager
uses: digicert/[email protected]
env:
SM_API_KEY: ${{ env.SM_API_KEY }}
SM_CLIENT_CERT_PASSWORD: ${{ env.SM_CLIENT_CERT_PASSWORD }}
SM_CLIENT_CERT_FILE: ${{ env.SM_CLIENT_CERT_FILE }}
if: github.event_name != 'pull_request'

- name: Initiate the client tools setup
Expand Down

0 comments on commit 41eacf5

Please sign in to comment.