-
-
Notifications
You must be signed in to change notification settings - Fork 69
34 lines (30 loc) · 1003 Bytes
/
post_to_dev_to.yml
File metadata and controls
34 lines (30 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: Post to dev.to
on:
workflow_dispatch:
push:
branches:
- master
permissions:
contents: read
jobs:
post_to_dev_to:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Publish articles on dev.to
uses: sinedied/publish-devto@v2
with:
# Your dev.to personal API key to publish and update articles.
# See https://docs.dev.to/api/#section/Authentication/api_key
devto_key: ${{ secrets.DEV_TO_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# (Optional) The files to publish. Default is "posts/**/*.md"
# TODO: rwaffen - lets test this first if and how this will release postings
files: '_posts/**/2024-*.md'
# (Optional) The git branch to use. Default is 'main'.
branch: master
# (Optional) Do not make actual changes on dev.to.
# TODO: rwaffen - lets test this first
dry_run: true