5151 path : artifacts/
5252 merge-multiple : true
5353
54+ - name : Compute upload input
55+ id : input
56+ run : |
57+ sha=${{ github.sha }}
58+ dsha=${{ inputs.duckdb-sha }}
59+ version=$(basename artifacts/*.tar.gz | sed 's/duckdb-\(.*\).tar.gz/\1/g')
60+ echo "short_sha=${sha:0:10}" >> $GITHUB_OUTPUT
61+ echo "short_dsha=${dsha:0:10}" >> $GITHUB_OUTPUT
62+ echo "version=${version}" >> $GITHUB_OUTPUT
63+ echo "s3_upload_url="s3://duckdb-staging/python/${version}/${sha:0:10}-duckdb-${dsha:0:10}/" >> $GITHUB_OUTPUT
64+
5465 - name : Authenticate with AWS
5566 uses : aws-actions/configure-aws-credentials@v4
5667 with :
@@ -59,19 +70,16 @@ jobs:
5970 aws-secret-access-key : ${{ secrets.S3_DUCKDB_STAGING_KEY }}
6071
6172 - name : Upload Artifacts
62- id : s3_upload
6373 run : |
64- sha=${{ github.ref }}
65- aws s3 cp artifacts s3://duckdb-staging/${{ github.repository }}/${sha:0:10}/ --recursive
74+ aws s3 cp artifacts ${{ steps.input.outputs.s3_upload_url }} --recursive
6675
6776 - name : S3 Upload Summary
6877 run : |
69- sha=${{ github.ref }}
70- version=$(basename artifacts/*.tar.gz | sed 's/duckdb-\(.*\).tar.gz/\1/g')
7178 echo "## S3 Upload Summary" >> $GITHUB_STEP_SUMMARY
72- echo "* Version: ${version}" >> $GITHUB_STEP_SUMMARY
73- echo "* SHA: ${sha:0:10}" >> $GITHUB_STEP_SUMMARY
74- echo "* S3 URL: s3://duckdb-staging/${{ github.repository }}/${sha:0:10}/" >> $GITHUB_STEP_SUMMARY
79+ echo "* Version: ${{ steps.input.outputs.version }}" >> $GITHUB_STEP_SUMMARY
80+ echo "* SHA: ${{ steps.input.outputs.short_sha }}" >> $GITHUB_STEP_SUMMARY
81+ echo "* DuckDB SHA: ${{ steps.input.outputs.short_dsha }}" >> $GITHUB_STEP_SUMMARY
82+ echo "* S3 URL: ${{ steps.input.outputs.upload_url }}" >> $GITHUB_STEP_SUMMARY
7583
7684 determine_environment :
7785 name : Determine the Github Actions environment to use
0 commit comments