File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 5656# Upload artifacts
5757DIST_DIR=" ./dist"
5858for file in " $DIST_DIR " /* ; do
59- echo " Uploading ${file} "
60- asset=" https://uploads.github.com/repos/phrase/phrase-cli/releases/${release_id} /assets?name=$( basename " $file " ) "
61- curl -sS --data-binary @" $file " -H " Authorization: token ${GITHUB_TOKEN} " -H " Content-Type: application/octet-stream" $asset > /dev/null
62- echo Hash: $( sha256sum $file )
59+ if [ -f " $file " ]; then
60+ echo " Uploading ${file} "
61+ asset=" https://uploads.github.com/repos/phrase/phrase-cli/releases/${release_id} /assets?name=$( basename " $file " ) "
62+ curl -sS --data-binary @" $file " -H " Authorization: token ${GITHUB_TOKEN} " -H " Content-Type: application/octet-stream" $asset > /dev/null
63+ echo Hash: $( sha256sum $file )
64+ fi
6365done
6466
6567echo " Publishing release"
You can’t perform that action at this time.
0 commit comments