Skip to content

Update content

Update content #14

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Install Asciidoctor
run: gem install asciidoctor
- name: Build HTML from AsciiDoc
run: |
# Build index.adoc
asciidoctor index.adoc
# Build all .adoc files in articles directory recursively (if any)
if [ -d articles ]; then
find articles -name '*.adoc' -exec asciidoctor {} \;
fi
- name: Remove files not needed for publishing
run: |
rm -f *.adoc **/*.adoc
rm -f favicon/favicon.psd
rm -rf include
rm -f _config.yml
rm -f CNAME
rm -f .gitignore
rm -f CLAUDE.md
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
deploy:
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