Skip to content

Merge pull request #896 from redhat-documentation/themr0c-patch-1 #455

Merge pull request #896 from redhat-documentation/themr0c-patch-1

Merge pull request #896 from redhat-documentation/themr0c-patch-1 #455

---
# Copyright (c) 2021 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
name: Publication build
on:
push:
branches:
- main
jobs:
publication-builder:
name: Build and publish to publication branch
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Antora
run: npm i antora @antora/lunr-extension
- name: Generate Site
run: npx antora antora-playbook.yml
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: build/vale-at-red-hat
- name: Commit artifact to publication branch
uses: peaceiris/actions-gh-pages@v4
with:
force_orphan: true # publish branch with only the latest commit
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: publication
publish_dir: build/vale-at-red-hat