Merge branch 'main' of https://github.com/Pwd9000-ML/blog-devto #1854
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish to Dev.to | |
on: | |
push: | |
paths: | |
- 'posts/**/**.md' # Path for community timeline | |
- 'posts/**/**/**.md' # Path for all posts (yearly) | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4.1.6 | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 14 | |
- name: Install Dependencies | |
uses: bahmutov/npm-install@v1.10.2 | |
- name: Run Prettier (Write) | |
run: yarn run prettier:write | |
- name: Run Embedme (Write) | |
run: yarn run embedme:write | |
- name: Publish articles on dev.to | |
continue-on-error: true | |
uses: sinedied/publish-devto@v2 | |
with: | |
files: 'posts/**/*.md' | |
devto_key: ${{ secrets.DEVTO_TOKEN }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
conventional_commits: true |