Skip to content

Commit

Permalink
sign windows cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Li committed Dec 8, 2023
1 parent 46cbef3 commit 2bcf1fa
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,29 +80,39 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v2

- name: Create Directory For Signed Build
- name: Create directory for signed builds
shell: bash
run: mkdir release-sentry-client-desktop-windows-latest/signed_builds
run: mkdir signed_builds

- name: Sign build
- name: Sign build Windows exe
uses: sslcom/actions-codesigner@develop
with:
command: sign
username: ${{ secrets.SSL_USERNAME }}
password: ${{ secrets.SSL_PASSWORD }}
totp_secret: ${{ secrets.SSL_TOTP_SECRET }}
file_path: release-sentry-client-desktop-windows-latest/sentry-client-windows.exe
output_path: release-sentry-client-desktop-windows-latest/signed_builds
output_path: signed_builds

- name: Generate checksum
run: |
CHECKSUM=$(sha512sum release-sentry-client-desktop-windows-latest/signed_builds/sentry-client-windows.exe | cut -f1 -d\ | xxd -r -p | base64)
CHECKSUM=$(echo "$CHECKSUM" | tr -d '\r\n')
echo "SHA512 Checksum: $CHECKSUM"
cat /home/runner/work/sentry-develop/sentry-develop/release-sentry-client-desktop-windows-latest/latest.yml
cd release-sentry-client-desktop-windows-latest
sed -i '' -e "s#^sha512:.*#sha512: \"$CHECKSUM\"#" latest.yml
sed -i '' -e "s#^ sha512:.*# sha512: \"$CHECKSUM\"#" latest.yml
- name: Sign build Windows cli
uses: sslcom/actions-codesigner@develop
with:
command: sign
username: ${{ secrets.SSL_USERNAME }}
password: ${{ secrets.SSL_PASSWORD }}
totp_secret: ${{ secrets.SSL_TOTP_SECRET }}
file_path: release-cli-ubuntu-latest/sentry-node-cli-windows.zip
output_path: signed_builds

# - name: Generate checksum
# run: |
# CHECKSUM=$(sha512sum release-sentry-client-desktop-windows-latest/signed_builds/sentry-client-windows.exe | cut -f1 -d\ | xxd -r -p | base64)
# CHECKSUM=$(echo "$CHECKSUM" | tr -d '\r\n')
# echo "SHA512 Checksum: $CHECKSUM"
# cat /home/runner/work/sentry-develop/sentry-develop/release-sentry-client-desktop-windows-latest/latest.yml
# cd release-sentry-client-desktop-windows-latest
# sed -i '' -e "s#^sha512:.*#sha512: \"$CHECKSUM\"#" latest.yml
# sed -i '' -e "s#^ sha512:.*# sha512: \"$CHECKSUM\"#" latest.yml

- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -115,9 +125,9 @@ jobs:
release-sentry-client-desktop-ubuntu-latest/sentry-client-linux.AppImage
release-sentry-client-desktop-windows-latest/latest.yml
release-sentry-client-desktop-windows-latest/sentry-client-windows.exe.blockmap
release-sentry-client-desktop-windows-latest/signed_builds/sentry-client-windows.exe
signed_builds/sentry-client-windows.exe
release-cli-ubuntu-latest/sentry-node-cli-macos.zip
release-cli-ubuntu-latest/sentry-node-cli-linux.zip
release-cli-ubuntu-latest/sentry-node-cli-windows.zip
signed_builds/sentry-node-cli-windows.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2bcf1fa

Please sign in to comment.