diff --git a/.github/workflows/html-build.yml b/.github/workflows/html-build.yml new file mode 100644 index 0000000..d80ec03 --- /dev/null +++ b/.github/workflows/html-build.yml @@ -0,0 +1,33 @@ +name: Rebuild all with asciidoctor + +on: + # Runs on pushes targeting the main branch. + push: + branches: ["main"] + # Runs on pull requests, uses the action's description from the target branch. + pull_request_target: + types: [opened,synchronize] + + workflow_dispatch: + +jobs: + # Build job + build: + runs-on: ubuntu-latest + # We now refer to the container by its SHA instead of the name, to prevent + # caching problems when updating the image. + # container: khronosgroup/docker-images:asciidoctor-spec.20240726 + container: khronosgroup/docker-images@sha256:089687083ceb36483a3917389e4278718ab19c594099634f5dd80e22540c960f + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build AsciiDoctor + run: | + find . -name "*.asciidoc" -exec touch {} \; + make all + - name: Upload Artifact + uses: actions/upload-artifact@v4 + if: always() + with: + name: HTML + path: ${{github.workspace}}/**/*.html