File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ The [composite action](https://docs.github.com/en/actions/sharing-automations/cr
17
17
- 🚀 Uploads CAR file to either Storacha, IPFS Cluster, or Kubo
18
18
- 📍 Optional pinning to Pinata
19
19
- 💾 Optional CAR file upload to Filebase
20
+ - 📤 CAR file attached to Github Action run Summary page
20
21
- 💬 PR comment with CID and preview links
21
22
- 🔗 Automatic preview links
22
23
- ✅ Commit status updates
@@ -78,6 +79,7 @@ The signing key and proof will be used as [inputs](#inputs) to the action.
78
79
| ` filebase-access-key ` | Filebase access key | - |
79
80
| ` filebase-secret-key ` | Filebase secret key | - |
80
81
| ` set-github-status ` | Set GitHub commit status and PR comments | ` 'true' ` |
82
+ | ` upload-car-artifact ` | Upload and publish the CAR file on GitHub Action Summary pages | ` 'true' ` |
81
83
| ` cluster-retry-attempts ` | Number of retry attempts for IPFS Cluster uploads | ` '5' ` |
82
84
| ` cluster-timeout-minutes ` | Timeout in minutes for each IPFS Cluster upload attempt | ` '2' ` |
83
85
Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ inputs:
66
66
set-github-status :
67
67
description : ' Set GitHub commit status and PR comments'
68
68
default : ' true'
69
+ upload-car-artifact :
70
+ description : ' Upload the CAR file as a GitHub artifact'
71
+ default : ' true'
72
+ required : false
69
73
70
74
outputs :
71
75
cid :
@@ -124,6 +128,24 @@ runs:
124
128
echo $CID
125
129
echo "✅ Merkleized path: \`${{ inputs.path-to-deploy }}\` into CAR file with root CID \`$CID\`" >> $GITHUB_STEP_SUMMARY
126
130
131
+ - name : CAR file artifact name
132
+ if : ${{ inputs.upload-car-artifact != 'false' }}
133
+ shell : bash
134
+ run : |
135
+ REPO_NAME=$(echo "${{ github.repository }}" | tr '/' '-')
136
+ COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
137
+ COMMIT_SHA_SHORT="${COMMIT_SHA:0:7}"
138
+ echo "artifact_name=$REPO_NAME-$COMMIT_SHA_SHORT-${{ steps.merkleize.outputs.cid }}.car" >> "$GITHUB_ENV"
139
+
140
+ - name : CAR file artifact upload
141
+ if : ${{ inputs.upload-car-artifact != 'false' }}
142
+ uses : actions/upload-artifact@v4
143
+ with :
144
+ name : ${{ env.artifact_name }}
145
+ path : build.car
146
+ retention-days : 7
147
+ if-no-files-found : error
148
+
127
149
- name : Configure and upload CAR to Storacha
128
150
if : ${{ inputs.storacha-key != '' && inputs.storacha-proof != ''}}
129
151
shell : bash
You can’t perform that action at this time.
0 commit comments