Skip to content

webrender/ifttt-ghpages

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

ifttt-ghpages

Hello! 👋 This is a script which lets you create Jekyll entries in a Github repo from IFTTT events, using the IFTTT Webhook action. You can see it in use on https://webrender.net.

Setup

  • Remix this project (or clone the repo if you'd prefer to run it yourself)
  • in the .env file, enter your username, the repo you'd like to commit to, and your Github user token. You can generate a Personal Access Token for use with this script here: https://github.com/settings/tokens
  • for the WEBHOOK_TOKEN env variable, generate/create a token of your choice. We'll use this to verify requests are coming from our webhook.
  • Go to IFTTT and create a new applet. For the "that" action, choose the Webhooks service, and then the Make a web request option. Fill in the fields as follows:
    • URL: The URL of your node server, with a token parameter. Example:
      • https://ifttt-ghpages.glitch.me/?token=your-token
    • Method: POST
    • Content Type: text/plain
    • Body: A YAML-formatted Jekyll document, with newlines replaced with |||. Example from examples/twitter:
      • ---|||layout: post|||title: {{UserName}} - Tweet|||network: twitter|||date: {{CreatedAt}}|||---|||{{TweetEmbedCode}}

About

IFTTT events -> Github Pages posts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published