Skip to content
A concourse resource for posting a story to medium
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
cmd
fakes
in
out
testdata/out
.gitignore
Dockerfile
LICENSE
NOTICE.md
README.md
go.mod
go.sum
medium.go
models.go

README.md

medium-resource

Go Report Card License Build Status Docker Pulls

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)

Source Configuration

Behavior

check & in : none

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.

out: Post an article.

Posts an article to medium based on parameters.

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. Default draft.
  • licence: Optional.

Example

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
You can’t perform that action at this time.