Skip to content

Commit

Permalink
only try to sign unsigned assets
Browse files Browse the repository at this point in the history
  • Loading branch information
davegarthsimpson committed Jun 29, 2024
1 parent 82e1fcb commit b2a80bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ jobs:
shell: bash
run: |
shopt -s nullglob
for ARTIFACT in "${{ env.BUILD_ARTIFACTS_PATH }}"/*.{exe,zip,msi}; do
for ARTIFACT in "${{ env.BUILD_ARTIFACTS_PATH }}"/*_unsigned.{exe,zip,msi}; do
echo "Processing $ARTIFACT"
FILENAME=$(basename "$ARTIFACT")
BASE_NAME="${FILENAME%.*}"
EXTENSION="${FILENAME##*.}"
# Remove '_unsigned' from the base name if it exists
SIGNED_BASE_NAME="${BASE_NAME/_unsigned/}"
# Remove '_unsigned' from the base name
SIGNED_BASE_NAME="${BASE_NAME%_unsigned}"
# Sign and rename EXE and MSI files
if [[ "$EXTENSION" == "exe" || "$EXTENSION" == "msi" ]]; then
Expand Down

0 comments on commit b2a80bc

Please sign in to comment.