aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-10-27 11:25:37 -0700
committerGarrett D'Amore <garrett@damore.org>2024-10-27 11:25:37 -0700
commit8e57f47e40f7b0e00c80289293e37c5610e8d2b7 (patch)
tree2591ac2bb4d877d318d29bc6771aaff23afcd26b /.github/workflows
parent8e2a09468f57f75cefcd61fd73e647efdc3621dc (diff)
downloadnng-8e57f47e40f7b0e00c80289293e37c5610e8d2b7.tar.gz
nng-8e57f47e40f7b0e00c80289293e37c5610e8d2b7.tar.bz2
nng-8e57f47e40f7b0e00c80289293e37c5610e8d2b7.zip
mdbook action (trial) for publish
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/mdbook.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/mdbook.yml b/.github/workflows/mdbook.yml
new file mode 100644
index 00000000..61253123
--- /dev/null
+++ b/.github/workflows/mdbook.yml
@@ -0,0 +1,31 @@
+name: mdbook publish
+
+on:
+ push:
+ branches:
+ - main:
+ pull_request:
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup mdBook
+ uses: peaceiris/actions-mdbook@v2
+ with:
+ # mdbook-version: '0.4.10'
+ mdbook-version: 'latest'
+
+ - run: mdbook build
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v4
+ if: ${{ github.ref == 'refs/heads/main' }}
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./book
+ destination_dir: ./ref