File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -445,6 +445,47 @@ jobs:
445445
446446 test "$(ls -A dist | wc -l)" -gt 0
447447
448+ - name : Generate sha256 files
449+ shell : bash
450+ run : |
451+ set -euxo pipefail
452+ cd dist
453+ for f in vix-*; do
454+ [ -f "$f" ] || continue
455+ sha256sum "$f" > "$f.sha256"
456+ done
457+ ls -la
458+
459+ - name : Sign assets (minisign)
460+ shell : bash
461+ env :
462+ MINISIGN_PRIVATE_KEY_B64 : ${{ secrets.MINISIGN_PRIVATE_KEY_B64 }}
463+ MINISIGN_PASSWORD : ${{ secrets.MINISIGN_PASSWORD }}
464+ run : |
465+ set -euxo pipefail
466+
467+ sudo apt-get update
468+ sudo apt-get install -y --no-install-recommends minisign
469+
470+ cd dist
471+
472+ keyfile="$(mktemp)"
473+ chmod 600 "$keyfile"
474+ printf "%s" "$MINISIGN_PRIVATE_KEY_B64" | base64 -d > "$keyfile"
475+ test -s "$keyfile"
476+
477+ for f in vix-*.tar.gz vix-*.zip; do
478+ [ -f "$f" ] || continue
479+ if [ -n "${MINISIGN_PASSWORD:-}" ]; then
480+ printf "%s" "$MINISIGN_PASSWORD" | minisign -S -s "$keyfile" -m "$f"
481+ else
482+ minisign -S -s "$keyfile" -m "$f"
483+ fi
484+ done
485+
486+ rm -f "$keyfile"
487+ ls -la
488+
448489 - name : Determine tag
449490 id : tag
450491 shell : bash
You can’t perform that action at this time.
0 commit comments