Add HTML building action (#271) #1
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: 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 |