This repository guides you through setting up a workflow to upload photos from your Apple device to Cloudflare Images, then trigger a GitHub Action which commits the upload response into your repository, for you to do whatever with; for example, you can use it to build a RSS feed of photos.
Step 1: Sign up for Cloudflare Images.
Step 2: Fork this repository. Alternatively, set up a GitHub Action like commit.yml
to receive the uploaded image metadata. The Shortcut in the next step assumes you are using commit.yml
, but it shouldn't be hard to customize.
Step 3: Install this Shortcut and respond to setup questions with your Cloudflare credentials and the details of your GitHub Action.
Cloudflare Images costs $60/year, but it takes care of serving and resizing your images in the most optimal way. Alternatively, check out muan/stories-feed-action which simply commits photos into your repository.
https://dash.cloudflare.com/profile/api-tokens → Create Token
https://dash.cloudflare.com/ → Images → Developer Resources → Account ID
This action takes the successful response from a Cloudflare Images upload, and appends it to a JSON file you specifiy.
The shortcut does the following:
- Prompt to select photo
- Prompt for caption and alt text
- Upload photo to Cloudflare Images with the caption/alt as its metadata
- Trigger a
workflow_dispatch
event for a GitHub action with the response from the success upload
The workflow_dispatch
action depends on the GitHub iOS app.