Last active
October 19, 2021 22:58
-
-
Save kevinslin/883d9295c3786b88010bffee15775f1f to your computer and use it in GitHub Desktop.
publish-action
This file contains hidden or 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: 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