More step fixes #7
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: build docs | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
doc_build: | ||
runs-on: ubuntu-latest | ||
name: building | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Get build container | ||
id: adocbuild | ||
uses: tonynv/asciidoctor-action@master | ||
with: | ||
program: "sudo apt update" | ||
program: "sudo apt install ruby-pygments.rb" | ||
Check failure on line 20 in .github/workflows/build-docs.yml GitHub Actions / build docsInvalid workflow file
|
||
program: "asciidoctor -t -v -D docs/smith --backend=xhtml5 -n -a toc=left -a source-hightlighter-pygments -o index.html docs/smith/manual.adoc" | ||
- name: Print execution time | ||
run: echo "Time ${{ steps.adocbuild.outputs.time }}" | ||
- name: Deploy docs to gh-pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: gh-pages | ||
publish_dir: ./docs/smith | ||