forked from redhat-documentation/vale-at-red-hat
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 973 Bytes
/
publication-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# 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@v3
- 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