.cirrus.upload.sh 397 B

123456789101112
  1. #!/usr/bin/env sh
  2. echo "Uploading..."
  3. name="higan-$CIRRUS_TAG-$OS.zip"
  4. curl -X POST \
  5. --data-binary @higan-nightly.zip \
  6. --header "Authorization: token $GITHUB_TOKEN" \
  7. --header "Content-Type: application/octet-stream" \
  8. --output /dev/null \
  9. --write-out '%{http_code}' \
  10. "https://uploads.github.com/repos/$CIRRUS_REPO_FULL_NAME/releases/$CIRRUS_RELEASE/assets?name=$name"