site

Personal site for Zane
Log | Files | Refs

commit 842aef7e838b2b940b170f9956e4c6ed600393cc
parent 1c8e564b1baa5c39fe4efb6c49b99ece216060e3
Author: Zane Schaffer <101823296+znschaffer@users.noreply.github.com>
Date:   Mon, 20 Nov 2023 11:43:18 -0800

Update main.yml
Diffstat:
M.github/workflows/main.yml | 40++++++++++++++++++----------------------
1 file changed, 18 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -1,25 +1,21 @@ -name: build adocs +name: Advanced Usage + +on: push -on: - push: - branches: - - main jobs: - adoc_build: - runs-on: ubuntu-latest - name: asciidoctor -a nofooter -a imagesdir='./img' -a stylesheet='adoc-riak.css' -D out ./src/*.adoc + convert_via_pandoc: + runs-on: ubuntu-22.04 steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Get build container - id: adocbuild - uses: tonynv/asciidoctor-action@master - with: - program: "asciidoctor -a nofooter -a imagesdir='./img' -a stylesheet='adoc-riak.css' -D out ./src/*.adoc" - - name: Deploy docs to ghpages - uses: peaceiris/actions-gh-pages@v3 - with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} - publish_branch: gh-pages - publish_dir: ./out - cname: znschaffer.com + - uses: actions/checkout@v3 + + - name: convert markdown to html + uses: docker://pandoc/latex:2.9 + with: + args: -c "mkdir out; cd src;find src -iname '*.md' -type f -exec sh -c 'pandoc ${0} -o ../out/${0%.md}.html' {} \;" + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./out +