diff --git a/.github/workflows/slsa-releaser.yml b/.github/workflows/slsa-releaser.yml index fb43deb..ee0ed4d 100644 --- a/.github/workflows/slsa-releaser.yml +++ b/.github/workflows/slsa-releaser.yml @@ -49,9 +49,8 @@ jobs: run: | export GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" pip3 install requests + brew install md5sha1sum python3 scripts/actions-sign.py - echo $GITHUB_REF - export VERSION=${GITHUB_REF##*/} - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/scripts/actions-sign.py b/scripts/actions-sign.py index c52ad4a..5435a52 100644 --- a/scripts/actions-sign.py +++ b/scripts/actions-sign.py @@ -9,7 +9,7 @@ def main(): waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}-darwin-arm64/hishtory-darwin-arm64", "hishtory-darwin-arm64") waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}-darwin-amd64/hishtory-darwin-amd64", "hishtory-darwin-amd64") - print("sha1sum:") + print("before sha1sum:") os.system("sha1sum hishtory-* 2>&1") print("file:") @@ -30,6 +30,9 @@ def main(): /usr/bin/codesign --force -s 6D4E1575A0D40C370E294916A8390797106C8A6E hishtory-darwin-amd64 -v """) + print("after sha1sum:") + os.system("sha1sum hishtory-* 2>&1") + def notAscii(fn):