Sign inSign up

cappyzawa/medium-resource

By cappyzawa

Updated over 7 years ago

A concourse resource for posting a story to medium

Image
0

500K+

cappyzawa/medium-resource repository overview

medium-resource

Go Report Card License Build Status

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: none
in: none
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.
  • 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.

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

Tag summary

Content type

Image

Digest

Size

20.8 MB

Last updated

over 7 years ago

docker pull cappyzawa/medium-resource