circle ci

This commit is contained in:
Valentin Boettcher 2017-11-24 18:15:51 +01:00
parent 82461b7dda
commit 0bdb7c467c

View file

@ -26,11 +26,7 @@ jobs:
VERSION=CIRCLE_BUILD_NUM
API_JSON=$(printf '{"tag_name": "v%s","target_commitish": "master","name": "v%s","body": "Another Build %s","draft": false,"prerelease": false}' $VERSION $VERSION $VERSION)
UPLOAD_URL = $(curl --data "$API_JSON" https://api.github.com/repos/vale981/LAAG1/releases?access_token=a4a8a9ce756374d3aa9772a33d96a4d0f6057fd4 | jq '.assets_url')
curl -H "Authorization: a4a8a9ce756374d3aa9772a33d96a4d0f6057fd4" \
-H "Accept: application/vnd.github.manifold-preview" \
-H "Content-Type: application/pdf" \
--data-binary /tmp/artifacts/Lineare_Algebra.pdf \
$UPLOAD_URL?name=Lineare_Algebra.pdf
curl -H "Authorization: a4a8a9ce756374d3aa9772a33d96a4d0f6057fd4" -H "Accept: application/vnd.github.manifold-preview" -H "Content-Type: application/pdf" --data-binary /tmp/artifacts/Lineare_Algebra.pdf $UPLOAD_URL?name=Lineare_Algebra.pdf
- store_artifacts:
path: /tmp/artifacts