Skip to content

More step fixes

More step fixes #7

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / build docs

Invalid workflow file

The workflow is not valid. .github/workflows/build-docs.yml (Line: 20, Col: 11): 'program' is already defined .github/workflows/build-docs.yml (Line: 21, Col: 11): 'program' is already defined
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