Member-only story

Posting to Medium from a GitHub action

tjtharrison
3 min readJun 20, 2023

--

Photo by Roman Synkevych on Unsplash

This article will serve as a brain dump while I take on the challenge of writing a GitHub action to automatically post new articles onto medium.com!

API + Authentication

The first thing I’ll look at is what is accessible from the GitHub API and how do we authenticate with it.

Quick google highlights that medium.com does indeed have an API, however the api docs have been archived with no forward and a stark Warning that the Medium API is no longer supported! This doesn’t bode well..

We’ll ignore the above and perservere for now! Reading down the documentation there is a link to the page where you can generate an api_token.. On the below link there is a nondescript link hiding at the bottom of the page `Integration tokens`. Lets generate ourselves a token..

--

--

tjtharrison
tjtharrison

Written by tjtharrison

DevSecOps | Security | Infrastructure

No responses yet