Skip to content

Merge pull request #627 from redhat-documentation/dependabot/github_a… #268

Merge pull request #627 from redhat-documentation/dependabot/github_a…

Merge pull request #627 from redhat-documentation/dependabot/github_a… #268

---
# 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
container: quay.io/antoraformodulardocs/antora-for-modular-docs:main
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build using antora
run: tools/publication-builder.sh
- name: Commit artifact to publication branch
uses: peaceiris/actions-gh-pages@v3
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