Skip to content

Commit

Permalink
Add HTML building action (#271)
Browse files Browse the repository at this point in the history
* Add HTML building action

* Update .github/workflows/html-build.yml

Co-authored-by: Victor Lomuller <[email protected]>

---------

Co-authored-by: Victor Lomuller <[email protected]>
  • Loading branch information
llvm-beanz and Naghasan authored Oct 23, 2024
1 parent 14e0064 commit 191b46f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/html-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 191b46f

Please sign in to comment.