do-release 765 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. . "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
  3. common_setup
  4. ./build-all
  5. ./zip-img
  6. tag="sha-${common_sha}"
  7. upload_basename="images-${common_sha}.zip"
  8. git tag "$tag"
  9. git push --tags
  10. # TODO
  11. # - https://stackoverflow.com/questions/41022470/curl-request-to-add-file-to-github-release
  12. # - https://stackoverflow.com/questions/38627115/upload-files-to-github-directory-using-github-api
  13. #curl "https://api.github.com/repos/cirosantilli/linux-kernel-module-cheat/releases/tags/${tag}/assets?access_token=$(cat data/access_token)&tag_name=${upload_basename}" \
  14. # --header 'Content-Type: application/zip' \
  15. # --upload-file "${common_out_dir}/${upload_basename}" \
  16. # -H 'Accept: application/vnd.github.v3+json' \
  17. # -X POST \
  18. #;
  19. ./bench-all -Au