Make flat tar.gz (#12)

This commit is contained in:
Slava 2024-09-19 15:31:43 +03:00 committed by GitHub
parent 49666eedb8
commit 8e41eacc6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,7 +137,9 @@ jobs:
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
run: |
# Archive
tar czvf ${{ env.archive_file }} ${{ env.circuit_file }} ${{ env.constraints_file }} ${{ env.wasm_file }} ${{ env.verification_key_file }}
mkdir archive
mv ${{ env.circuit_file }} ${{ env.constraints_file }} ${{ env.wasm_file }} ${{ env.verification_key_file }} archive
tar czvf ${{ env.archive_file }} -C archive .
# Variables
hash=($(shasum -a 256 ${{ env.archive_file }}))
[[ -z "${{ env.s3_bucket_path}}" ]] && storage_file="${hash}" || storage_file="${{ env.s3_bucket_path}}/${hash}"