Skip to content

Mo updates

Mo updates #91

Workflow file for this run

name: GitHub Pages Publish
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [main]
pull_request:
branches: [main]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Move assets to dist
run: |
mkdir -p dist/{fonts,images}
cp -r fonts/* dist/fonts/
cp -r images/* dist/images/
cp {LICENSE-AGPL,LICENSE-CC-BY-SA-4.0} dist
- id: adocbuild
uses: tonynv/asciidoctor-action@master
with:
program: |
gem install asciidoctor-multipage
mv sfrag.adoc index.adoc
asciidoctor-multipage -a toc=left -D dist index.adoc
- name: Archive artifacts
uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: dist
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Configure GitHub Pages
uses: actions/configure-pages@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this actio