Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
/ medium-resource Public archive

A concourse resource for posting a story to medium

License

Notifications You must be signed in to change notification settings

cappyzawa/medium-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A concourse resource for posting a story to medium

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published