Skip to content

Instantly share code, notes, and snippets.

@kevinslin
Last active October 19, 2021 22:58
Show Gist options
  • Save kevinslin/883d9295c3786b88010bffee15775f1f to your computer and use it in GitHub Desktop.
Save kevinslin/883d9295c3786b88010bffee15775f1f to your computer and use it in GitHub Desktop.
publish-action
name: Dendron
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Build notes
uses: dendronhq/actions-publish
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# if not set, docs/ by default
publish_dir: ""
# empty if not set
cname: ""
- name: Deploy site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: pages
publish_dir: docs/
force_orphan: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment