Skip to content

Commit 19307fb

Browse files
author
Dave Grantham
committed
tweaks
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
1 parent 91626b9 commit 19307fb

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/preview.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,12 @@ jobs:
7777
env:
7878
AWS_EC2_METADATA_DISABLED: true
7979
run: |
80-
aws --endpoint-url https://s3.filebase.com \
80+
aws --endpoint https://s3.filebase.com \
8181
s3 cp preview.car \
82-
s3://libp2p-preview/${{ steps.vars.outputs.prefix }} \
83-
--content-type application/car \
84-
--metadata import=car \
82+
s3://${{ secrets.FILEBASE_BUCKET_PREVIEW }} \
83+
--metadata 'import=car' \
8584
--debug > upload.log 2>&1
8685
87-
echo "===== LOG ====="
88-
cat upload.log
89-
echo "==============="
90-
9186
# Extract CID from debug log (x-amz-meta-cid header)
9287
CID=$(grep -i 'x-amz-meta-cid' upload.log | awk -F': ' '{print $2}' | tr -d '\r')
9388
if [ -z "$CID" ]; then
@@ -104,7 +99,7 @@ jobs:
10499
**Preview ready!**
105100
106101
View the preview build here:
107-
https://gateway.filebase.com/ipfs/${{ steps.upload.outputs.cid }}/
102+
https://libp2p.myfilebase.com/ipfs/${{ steps.upload.outputs.cid }}/
108103
109104
(Root CID: ${{ steps.upload.outputs.cid }} – expires when PR is closed/branch deleted)
110105

0 commit comments

Comments
 (0)