QOwnNotes/gitlab-ci/deploy-file.sh
2015-07-29 22:42:42 +02:00

9 lines
404 B
Bash
Executable file

#!/usr/bin/env bash
#
# Deploys QOwnNotes.dmg to the QOwnNotes GitHub releases page
#
# execute: ./deploy-file.sh $RELEASE_ID $GITHUB_ACCESS_TOKEN
#
curl -H "Authorization: token $2" -H "Accept: application/vnd.github.manifold-preview" -H "Content-Type: application/x-apple-diskimage" --data-binary @QOwnNotes.dmg "https://uploads.github.com/repos/pbek/QOwnNotes/releases/$1/assets?name=QOwnNotes.dmg"