{"id":20801879,"url":"https://github.com/philips-software/post-to-medium-action","last_synced_at":"2025-05-07T00:42:22.026Z","repository":{"id":37245466,"uuid":"421724726","full_name":"philips-software/post-to-medium-action","owner":"philips-software","description":"GitHub Action that allows you to create a new Medium post with Markdown or HTML.","archived":false,"fork":false,"pushed_at":"2024-04-03T15:01:50.000Z","size":135,"stargazers_count":14,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T07:59:42.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philips-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-10-27T07:49:02.000Z","updated_at":"2024-10-30T16:23:50.000Z","dependencies_parsed_at":"2024-04-03T16:27:07.829Z","dependency_job_id":"b9fa64a2-3aec-42a8-b4fb-8be1e04091be","html_url":"https://github.com/philips-software/post-to-medium-action","commit_stats":{"total_commits":54,"total_committers":3,"mean_commits":18.0,"dds":0.05555555555555558,"last_synced_commit":"e76252d041f241d77717380a47c1856bd2d90e96"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fpost-to-medium-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fpost-to-medium-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fpost-to-medium-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philips-software%2Fpost-to-medium-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philips-software","download_url":"https://codeload.github.com/philips-software/post-to-medium-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252793546,"owners_count":21805053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T18:24:55.365Z","updated_at":"2025-05-07T00:42:22.021Z","avatar_url":"https://github.com/philips-software.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003ePost to Medium GitHub Action\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    GitHub Action that allows you to automatically create a new Medium post with Markdown or HTML.\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/philips-software/post-to-medium-action/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/philips-software/post-to-medium-action/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## State\n\n\u003e Functional\n\n## Usage\n\nThe easiest way to use this action is to add the following into your workflow file. Additional configuration might be necessary to fit your usecase.\n\nAdd the following part in your workflow file:\n\n#### Using `content` \n\n   ```yml\n   jobs:\n     post-to-medium:\n       name: Post to Medium\n       runs-on: ubuntu-latest\n       steps:\n         - name: Create Medium Post\n           uses: philips-software/post-to-medium-action@v0.6.0\n           with:\n             integration_token: \"${{ secrets.INTEGRATION_TOKEN }}\"\n             content: |\n               # Story Title\n               ## an optional subtitle\n               \n               Lorem ipsum content Lorem ipsum content Lorem ipsum\n               content Lorem ipsum content Lorem ipsum content Lorem \n               ipsum content Lorem ipsum content Lorem ipsum content.\n             content_format: \"markdown\"\n             notify_followers: \"false\"\n             tags: \"test,tag\"\n             title: \"title\"\n             license: \"all-rights-reserved\"\n             publish_status: \"draft\"\n   ```\n\n#### Using `file` \n\n   ```yml\n   jobs:\n     post-to-medium:\n       name: Post to Medium\n       runs-on: ubuntu-latest\n       steps:\n         - name: Check out repository\n           uses: actions/checkout@v2\n         - name: Create Medium Post\n           uses: philips-software/post-to-medium-action@v0.6.0\n           with:\n             integration_token: \"${{ secrets.INTEGRATION_TOKEN }}\"\n             file: \"path/to/story.md\"\n             content_format: \"markdown\"\n             notify_followers: \"false\"\n             tags: \"test,tag\"\n             title: \"title\"\n             license: \"all-rights-reserved\"\n             publish_status: \"draft\"\n   ```\n\n## Inputs\n\n| parameter | description | required | default |\n| - | - | - | - |\n| integration_token | Medium's Integration Token. Token can be retrieved at medium.com, settings section, under 'Integration Token.' | `true` |  |\n| content | Content to add in the post, can be either HTML or Markdown. Use either this parameter, or the file parameter. | `false` |  |\n| content_format | The format of the content field. There are two valid values, html, and markdown. | `true` |  |\n| file | Absolute path to the file to use as content, can be either HTML or Markdown. Use either this parameter, or the content parameter. | `false` |  |\n| publish_status | Post's status. Valid values are 'draft', 'public', or 'unlisted'. | `false` | draft |\n| notify_followers | Whether to notify followers that the user has published. | `false` | false |\n| license | Post's license. Valid values are 'all-rights-reserved', 'cc-40-by', 'cc-40-by-sa', 'cc-40-by-nd', 'cc-40-by-nc', 'cc-40-by-nc-nd', 'cc-40-by-nc-sa', 'cc-40-zero', 'public-domain'. | `false` | all-rights-reserved |\n| publication_name | The name of the publication the post is being created under. If you wish to publish on a publication, either PublicationName of PublicationId should be set. If neither PublicationId or PublicationName is filled in, it will post on the user that is authentication.| `false` |  |\n| publication_id | The id of the publication the post is being created under. If you do not know the Id, use PublicationName. If you wish to publish on a publication, either PublicationName of PublicationId should be set. If neither PublicationId or PublicationName is filled in, it will post on the user that is authentication. | `false` |  |\n| canonical_url | The canonical URL of the post. If canonicalUrl was not specified in the creation of the post, this field will not be present. | `false` |  |\n| tags | The post’s tags. Provide a comma separated string without spaces. | `true` |  |\n| title | The post's title. | `true` |  |\n| parse_frontmatter | Should the action read and delete frontmatter in a markdown file. Frontmatter should start with --- and end with ---. Should be on the top of the page. When parsing frontmatter, only markdown is supported and settings will be overwritten if specified in the frontmatter. PascalCasing and under_scored lowercasing naming convention is supported. | `true` | false |\n\n## Outputs\n\n| parameter | description |\n| - | - |\n| id | ID of the Medium post. |\n| author_id | Author ID of the post creator. |\n| canonical_url | Canonical URL of the post. |\n| license | License of the post, can be empty at times. |\n| license_url | License url of the post, Medium uses this under the hood. |\n| publication_id | Id of the publication which the post is created under. |\n| publication_status | Publication status of the post. |\n| title | Title of the post. |\n| tags | Tags of the post, comma separated. |\n| url | URL to the Medium post. |\n\n## Contributing\n\nIf you have a suggestion that would make this project better, please fork the repository and create a pull request. You can also simply open an issue with the tag \"enhancement\".\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nDistributed under the MIT License. See [LICENSE](/LICENSE) for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/philips-software/post-to-medium-action.svg?style=for-the-badge\n[contributors-url]: https://github.com/philips-software/post-to-medium-action/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/philips-software/post-to-medium-action.svg?style=for-the-badge\n[forks-url]: https://github.com/philips-software/post-to-medium-action/network/members\n[stars-shield]: https://img.shields.io/github/stars/philips-software/post-to-medium-action.svg?style=for-the-badge\n[stars-url]: https://github.com/philips-software/post-to-medium-action/stargazers\n[issues-shield]: https://img.shields.io/github/issues/philips-software/post-to-medium-action.svg?style=for-the-badge\n[issues-url]: https://github.com/philips-software/post-to-medium-action/issues\n[license-shield]: https://img.shields.io/github/license/philips-software/post-to-medium-action.svg?style=for-the-badge\n[license-url]: https://github.com/philips-software/post-to-medium-action/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fpost-to-medium-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilips-software%2Fpost-to-medium-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilips-software%2Fpost-to-medium-action/lists"}