Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Dec 24, 2024
1 parent 2c31eec commit 7d42a02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ jobs:

- name: Code signing with Software Trust Manager
uses: digicert/[email protected]
if: github.event_name == 'push' && (github.ref_protected || startsWith(github.ref, 'refs/tags'))
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))

- name: Installing Node
uses: actions/[email protected]
Expand All @@ -338,7 +338,7 @@ jobs:
ARCH: ${{matrix.arch}}

- name: Decode certificate
if: github.event_name == 'push' && (github.ref_protected || startsWith(github.ref, 'refs/tags'))
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))
env:
SM_CLIENT_CERT_FILE_B64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
run: |
Expand All @@ -348,7 +348,7 @@ jobs:
shell: bash

- name: Build and sign packages
if: github.event_name == 'push' && (github.ref_protected || startsWith(github.ref, 'refs/tags'))
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))
shell: powershell
run: |
Get-FileHash $env:SM_CLIENT_CERT_FILE -Algorithm MD5
Expand Down Expand Up @@ -378,7 +378,7 @@ jobs:

- name: Build packages without signing
run: node scripts/build-windows.mjs
if: "! (github.event_name == 'push' && (github.ref_protected || startsWith(github.ref, 'refs/tags')))"
if: "! (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')))"
env:
ARCH: ${{matrix.arch}}

Expand Down

0 comments on commit 7d42a02

Please sign in to comment.