Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trevorwslee/test_to_devto
https://github.com/trevorwslee/test_to_devto
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/trevorwslee/test_to_devto
- Owner: trevorwslee
- Created: 2024-04-03T23:45:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T09:46:24.000Z (9 months ago)
- Last Synced: 2024-04-05T03:25:18.796Z (9 months ago)
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# devto-github-template
[![Build Status](https://github.com/sinedied/devto-github-template/workflows/publish/badge.svg)](https://github.com/sinedied/devto-github-template/actions)
> Example repository setup for synchronizing markdown files as dev.to articles, using assets hosted on GitHub.
## Getting started
1. Select **Use this template** on GitHub. This will create a new repository on your account from this template.
2. Go to https://developers.forem.com/api/#section/Authentication/api_key and follow the **Getting an API key** instructions to generate your own dev.to API key.
3. Select the **Settings** tab on your GitHub repository, then go to the **Secrets** section.
4. Add a secret called **DEVTO_TOKEN** with the value of your dev.to API key.
Now your articles are ready to be published on dev.to! 🎉
Have a look a the example article in `posts/example.md` to see how it works, then you just have to commit and push your changes to have them reflected on dev.to.
## How it works
This template is based on the [publish-devto](https://github.com/sinedied/publish-devto) action, which uses under the hood the [devto-cli](https://github.com/sinedied/devto-cli) to publish your articles.
You can find more information about how it works in the [CLI readme](https://github.com/sinedied/devto-cli).