A concourse resource for posting a story to medium
500K+
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 tokenscheck: nonein: noneout: Post an article.Posts an article to medium based on parameters.
content_file: Required. This Resource posts an article based on specified file.format: Optional. Default markdown. if you want to use html, please set it.title: Optional. If this parameter does not set, first-line of the content_file is used as title.tags: Optional. You can set tags as array.canonical_url: Optional.status: Optional. Default draft.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
Content type
Image
Digest
Size
20.8 MB
Last updated
over 7 years ago
docker pull cappyzawa/medium-resource