A GitHub Action that fetches a from an iCloud shared album, commits the images into the repository, and then generate a data file to the _data
directory to be used for generating a JSON feed with Jekyll.
This is meant as a demostration for an Instagram-like <story-view>
demo, so the images should be 9:16. Add each image individually to an album to include a caption.
Steps to setup:
-
Have an iCloud Shared Album ready.
-
Fork this repository.
-
Edit
_config.yml
with your info. -
Set repository secret
ICLOUD_TOKEN
athttps://github.com/<username>/stories-feed-action/settings/secrets/actions
. You'd need to publish the iCloud shared album as a website, and the token value would beB0000000000
from its full URLhttps://www.icloud.com/sharedalbum/#B0000000000
. -
Turn on GitHub pages at
https://github.com/<username>/stories-feed-action/settings/pages
-
Manually trigger a workflow dispatch event at
https://github.com/<username>/stories-feed-action/actions/workflows/stories.yml
to see images being added to the repository. -
See something like this (GIF) at
https://<username>.github.io/stories-feed-action
. -
With the GitHub iOS app, you'll be able to set up a Shortcut to dispatch the workflow event right from your phone.
This GitHub Action commits the images in the repository, which frankly aren't that great performance-wise. I recommend checking out Cloudflare Images.