-
Notifications
You must be signed in to change notification settings - Fork 30
41 lines (41 loc) · 1.35 KB
/
Copy pathpublication-builder.yml
File metadata and controls
41 lines (41 loc) · 1.35 KB
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
31
32
33
34
35
36
37
38
39
40
41
---
# Copyright (c) 2021 Red Hat, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
#
name: Publication build
on:
# Reusable workflow. Called on push on the content branches.
workflow_call:
secrets:
DOCS_DEPLOY_TOKEN:
required: true
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@v2
with:
fetch-depth: 0
- 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/docs
- name: Repository dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DOCS_DEPLOY_TOKEN }}
repository: devfile/landing-page
event-type: build-and-deploy