Skip to content

Set actual date rather than using {docdate} and unify version format #18

Set actual date rather than using {docdate} and unify version format

Set actual date rather than using {docdate} and unify version format #18

Workflow file for this run

name: Rebuild all with asciidoctor
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
branches:
- main
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Build AsciiDoctor
run: |
find . -name "*.asciidoc" -exec touch {} \;
make all
find . -type d -exec mkdir -p ../_site/{} \;
find . -name "*.html" -exec cp {} ../_site/{} \;
find ../_site -type d -empty -delete
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ../_site
# Deployment job
deploy:
if: ${{ github.event_name == 'push'}}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4