Skip to content

Commit

Permalink
guessing some values
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon committed Dec 13, 2024
1 parent 7b738c5 commit c1b67e5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,27 @@ jobs:
with:
name: '${{ needs.build-tauri.outputs.channel }}-${{ matrix.platform }}-${{ github.run_number }}'
path: release
- name: Set file as a variable
id: set-path
run: |
VALUE=$(find release -name "*.msi" -type f -printf '%P\n')
echo "::set-output name=msi_file::$VALUE"
- name: Sign Windows binary
shell: bash
run: |
find release -name "*.msi" -type f -print0 | xargs -0 -n1 -I{} python3 /sign-with-evcodesignd.py "{}"
env:
EVCODESIGND_PSK: ${{ secrets.EVCODESIGND_PSK }}
- name: Sign our test file
uses: thomasdesr/minisign-action@v1
with:
args: -Sm release/${{ steps.set-path.outputs.msi_file }}
minisign_key: ${{ secrets.TAURI_PRIVATE_KEY }}
password: ${{ secrets.TAURI_KEY_PASSWORD }}
- name: Compress signed msi
shell: bash
run: |
apt update && apt install -y zip
find release -name "*.msi" -type f -print0 | zip "release/$(find release -name "*.msi" -type f -printf '%P\n').zip" -@
uses: montudor/action-zip@v1
with:
args: zip -qq -r release/${{ steps.set-path.outputs.msi_file }}.zip release/${{ steps.set-path.outputs.msi_file }}
- name: Upload signed artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c1b67e5

Please sign in to comment.