@@ -5,17 +5,20 @@ If a tree falls in the woods, does it make a sound?
55Publish your repo's markdown to multiple distributors with a simple ` git push ` , so that when your tree falls, it makes a sound.
66
77## Current Integration
8- * [ DEV] ( https://dev.to )
8+
9+ - [ DEV] ( https://dev.to )
910
1011Create an Issue if you have another distributor that you'd like to add to this git action.
1112
1213## Arguments
1314
14- | Input | Description | Usage |
15- | :---: | :---: | :---: |
16- | ` github-token ` | GitHub Auth Token | * Required* |
17- | ` content-dir ` | Path from the root to your markdown files. Defaults to ` ./content/articles/ ` | Optional |
18- | ` dev-to-token ` | API token for dev.to. (https://dev.to/settings/account) | * Required* |
15+ | Input | Description | Usage |
16+ | :----------------: | :---------------------------------------------------------------------------------------------------------: | :--------: |
17+ | ` github-token ` | GitHub Auth Token | _ Required_ |
18+ | ` content-dir ` | Path from the root to your markdown files. Defaults to ` ./content/articles/ ` | Optional |
19+ | ` dev-to-token ` | API token for dev.to. (https://dev.to/settings/account) | _ Required_ |
20+ | ` medium-token ` | API token for medium.to. (https://medium.com/me/settings) | _ Optional_ |
21+ | ` medium-author-id ` | You can access your author id from the (User Endpoint)[ https://github.com/Medium/medium-api-docs#31-users ] . | _ Optional_ |
1922
2023## Example usage
2124
@@ -25,20 +28,20 @@ name: CrossPost
2528on :
2629 push :
2730 paths :
28- - ' content/articles/*.md'
31+ - ' content/articles/*.md'
2932
3033jobs :
3134 crosspost :
3235 runs-on : ubuntu-latest
3336 steps :
34- - name : Checkout Code
35- uses : actions/checkout@v2
36-
37- - uses : basicBrogrammer/crosspost-markdown@v0.1.1
38- with :
39- content-dir : ' content/articles/'
40- dev-to-token : ${{ secrets.DEV_TO }}
41- github-token : ${{ secrets.GITHUB_TOKEN }}
37+ - name : Checkout Code
38+ uses : actions/checkout@v2
39+
40+ - uses : basicBrogrammer/crosspost-markdown@v0.1.1
41+ with :
42+ content-dir : ' content/articles/'
43+ dev-to-token : ${{ secrets.DEV_TO }}
44+ github-token : ${{ secrets.GITHUB_TOKEN }}
4245` ` `
4346
4447## Contribute
0 commit comments