Skip to content

Commit

Permalink
Update distribute-binaries.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bearaujus committed Dec 8, 2024
1 parent b57acf9 commit 9448f21
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/distribute-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,7 @@ jobs:
REQUEST_CSR: ${{ secrets.REQUEST_CSR }}
SIGN_PASSWORD: ${{ secrets.SIGN_PASSWORD }}
run: |
# Decode the PRIVATE_KEY secret and save it to a file
echo "${PRIVATE_KEY}" > private.key
# Decode the REQUEST_CSR secret and save it to a file
echo "${REQUEST_CSR}" > request.csr
# Decode the SIGN_PASSWORD secret and save it to a file
echo "${SIGN_PASSWORD}" > sign_password.txt
# Create the .p12 certificate using the private key and certificate (self-signed or CA-signed)
openssl pkcs12 -export -out certificate.p12 -inkey private.key -in request.csr -passout file:sign_password.txt
# Clean up sensitive files after use
rm private.key request.csr sign_password.txt
echo "$PRIVATE_KEY" | openssl pkcs12 -export -out certificate.p12 -inkey /dev/stdin -in <(echo "$REQUEST_CSR") -passout pass:"$SIGN_PASSWORD"
# Get the version from the tag
- name: Get version from tag
Expand Down

0 comments on commit 9448f21

Please sign in to comment.