Back in November, Nick Maris wrote an article about posting articles in Dev.to from GitLab.
It was something I instantly wanted to try for a couple of reasons:
- I love GitLab, and want to use it for more and more things
- I write stuff fairly regularly, and it would give me a way of cross-posting easily.
Now that I have outlined my goals for 2021 which include blogging twice per week, this seemed like something I needed to implement. Without it, I'd simply be copying and pasting content and checking formatting. Massively eating into my time.
So I finally did it. I followed the instructions on Nick's post, and set up a couple of articles to test. This is one of them, the other will come tomorrow, and will be my first cross post. Tomorrow's is a bit of a cheat, as I'd already copied the content into Dev.to, and then the content from Dev.to to the .md
file for the article, but it is (at the time of writing) a draft to be published.
If you're seeing this, then you too can know that it's possible to do. If you use source control for creating your articles, and use .md
files anyway, then this could help you get your content live at a time that suits. You'll be able to schedule content to get published even when you are on holiday, or otherwise unable to get online.
Photo by Arseny Togulev on Unsplash
Top comments (2)
I write posts just for me so it's really cool seeing that someone finds value in it!
Looking forward to your next post Gary!
I like things which save me time and effort. It buys me time in the future.
I only had to change the gitlab-ci.yml file slightly to replace your repo username with mine.