Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Crosspost Markdown

If a tree falls in the woods, does it make a sound?

Publish your repo's markdown to multiple distributors with a simple git push, so that when your tree falls, it makes a sound.

Current Integration

Create an Issue if you have another distributor that you'd like to add to this git action.

Arguments

InputDescriptionUsage
github-tokenGitHub Auth TokenRequired
content-dirPath from the root to your markdown files. Defaults to ./content/articles/Optional
dev-to-tokenAPI token for dev.to. (https://dev.to/settings/account)Required
medium-tokenAPI token for medium.to. (https://medium.com/me/settings)Optional
medium-author-idYou can access your author id from the (User Endpoint)[https://github.com/Medium/medium-api-docs#31-users].Optional

Example usage

name: CrossPoston:
push:
paths:
- 'content/articles/*.md'jobs:
crosspost:
runs-on: ubuntu-lateststeps:
- name: Checkout Codeuses: actions/checkout@v2
- uses: basicBrogrammer/crosspost-markdown@v0.1.1with:
content-dir: 'content/articles/'dev-to-token: ${{ secrets.DEV_TO }}github-token: ${{ secrets.GITHUB_TOKEN }}

Contribute

This action is still under construction. Report any issues you have. Pull requests welcome. 🤙

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages