Skip to content

st-brendan.xml, fix conflicts (indentation) #38

st-brendan.xml, fix conflicts (indentation)

st-brendan.xml, fix conflicts (indentation) #38

name: Create editioncrafter assets, and build and deploy hugo site
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install EditionCrafter CLI
run: npm install -g @cu-mkp/editioncrafter-cli
- name: Make build script executable
run: chmod +x build.sh
- name: Build site
run: ./build.sh production
- name: Disable Jekyll
run: touch public/.nojekyll
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4