File tree 2 files changed +17
-3
lines changed 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,19 @@ jobs:
73
73
with :
74
74
command : ${{ matrix.command }}
75
75
args : ${{ matrix.args }}
76
- - name : making bundle
76
+ - name : make bundle
77
77
if : ${{ matrix.command == 'build' }}
78
78
run : ./build-bundle.sh
79
- - name : Publishing build artifacts
79
+ - name : upload bundle
80
+ if : ${{ matrix.command == 'build' }}
81
+ env :
82
+ ESTUARY_TOKEN : ${{ secrets.ESTUARY_TOKEN }}
83
+ run : ./upload-bundle.sh
84
+ - name : Publishing build artifacts to github
80
85
if : ${{ matrix.command == 'build' }}
81
86
uses : actions/upload-artifact@v2
82
87
with :
83
88
name : bundle
84
- path : output/builtin-actors.car
89
+ path : |
90
+ output/builtin-actors.car
91
+ output/upload.json
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ bundle=output/builtin-actors.car
6
+ curl -k -X POST -F " data=@${bundle} ;type=application/octet-stream;filename=\" ${bundle} \" " -H " Authorization: Bearer $ESTUARY_TOKEN " -H " Content-Type: multipart/form-data" https://shuttle-4.estuary.tech/content/add > output/upload.json
7
+ cat output/upload.json
You can’t perform that action at this time.
0 commit comments