-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (47 loc) · 1.26 KB
/
Wiki.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Copyright (c) 2019 Broadcom.
# The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
#
# 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
#
# Contributors:
# Broadcom, Inc. - initial API and implementation
#
name: Wiki
on:
push:
branches:
- development
defaults:
run:
shell: sh
jobs:
docs-to-wiki:
name: Publish documentation to wiki
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout base code
uses: actions/checkout@v4
with:
path: base
persist-credentials: false
- name: Checkout wiki code
uses: actions/checkout@v4
with:
repository: ${{github.repository}}.wiki
path: wiki
- name: Upload Documentation to Wiki
run: |
cd wiki
rm -rf *
cp -r ../base/docs/* ./
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add .
git diff-index --quiet HEAD || git commit -m "Automatically publish wiki" && git push