A concourse resource for positing a story to medium.
This resource can post one story, so you should prepare preprocessing task(e.g. tasks/prepare.yml)
access_token
: Required. You can get the access token from Self-issued access tokens
Medium API does not get stories.
starkandwayne/rss-resource: A Concourse resource to grab RSS feeds and their contents can get stories by using rss.
Posts an article to medium based on parameters.
content_file
: Required. This Resource posts an article based on specified file(Markdown or HTML).tags
: Optional. You can set tags as array.canonical_url
: Optional.status
: Optional. Defaultdraft
.licence
: Optional.
resource_types:
- name: medium
type: registry-image
source:
repository: cappyzawa/medium-resource
tag: latest
resources:
- name: blog-repo
type: git
source:
uri: https://github.com/cappyzawa/medium
paths:
- docs/*
- name: blog
type: medium
source:
access_token: ((medium-token))
jobs:
- name: publish-to-medium
build_logs_to_retain: 10
plan:
- get: blog-repo
trigger: true
- task: prepare
file: blog-repo/ci/tasks/prepare.yml
- put: blog
params:
content_file: completed/latest.md